Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-23 Thread Ben Mabey
Scott Taylor wrote: Ben Johnson wrote: Did anyone ever figure out the factory_girl / machinist issues? I am having the same problems and can figure out how to fix it for the life of me. The first run works fine, then afterwards I get a bunch of these errors: No blueprint for class Venue Any

Re: [rspec-users] How to execute code if a rspec test fails

2009-05-23 Thread David Chelimsky
On Sat, May 23, 2009 at 8:13 AM, Rishi Gh wrote: > I am trying to make a call to a class/fxn I made, depending on whether > an Rspec test fails. If it fails, I want to make the call, otherwise I > won't need to. > Is there some error message or specific syntax for checking this? Also, > WHERE shou

Re: [rspec-users] undefined method `assert_select'

2009-05-23 Thread Sarah Allen
David Chelimsky wrote: > What version of rspec are you using? 1.2.6 -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec for Rails plugin

2009-05-23 Thread David Chelimsky
On Sat, May 23, 2009 at 12:30 AM, Sarah Allen wrote: > David Chelimsky wrote: >> Check out Pat's rspec plugin generator: >> >> http://github.com/pat-maddox/rspec-plugin-generator/tree/master > > Hey thanks.  That sounds like just the thing, but I'm kind of new to > this stuff.  I guessed where to

Re: [rspec-users] undefined method `assert_select'

2009-05-23 Thread David Chelimsky
On Sat, May 23, 2009 at 3:00 PM, Sarah Allen wrote: > Sarah Allen wrote: >> Sarah Allen wrote: >>> line 17 is: >>>       html.should have_tag('script', /swfobject.embedSWF/) >> >> I order to use have_tag, it appears I have to include: >> >> # just enough infrastructure to get 'assert_select' to wo

Re: [rspec-users] undefined method `assert_select'

2009-05-23 Thread Sarah Allen
Sarah Allen wrote: > Sarah Allen wrote: >> line 17 is: >> html.should have_tag('script', /swfobject.embedSWF/) > > I order to use have_tag, it appears I have to include: > > # just enough infrastructure to get 'assert_select' to work > require 'action_controller' > require 'action_controlle

Re: [rspec-users] undefined method `assert_select'

2009-05-23 Thread Sarah Allen
Sarah Allen wrote: > line 17 is: > html.should have_tag('script', /swfobject.embedSWF/) I order to use have_tag, it appears I have to include: # just enough infrastructure to get 'assert_select' to work require 'action_controller' require 'action_controller/assertions/selector_assertions' i

[rspec-users] Writing specs pointed out I need to refactor my admin area

2009-05-23 Thread Fernando Perez
Hi, My app now nearly has 100% coverage and when refactoring the code, potential bugs are immediately pointed out. So that's a big win. Moreover when writing specs for my controllers and views of the admin zone, I quickly realized that I was often copying/pasting code and tests. That annoyed me.

[rspec-users] How to execute code if a rspec test fails

2009-05-23 Thread Rishi Gh
I am trying to make a call to a class/fxn I made, depending on whether an Rspec test fails. If it fails, I want to make the call, otherwise I won't need to. Is there some error message or specific syntax for checking this? Also, WHERE should I place this to pickup failed tests, and make the call? -