[rspec-users] How to detect test fail on after(:each) method?

2011-08-15 Thread Leo
Hi All: I am working on a test, and I need to detect if the test failed on the after(:each) method, just to call a WebService. Thanks! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] testing controller instance variables

2009-07-17 Thread Leo Godin
) ./spec/controllers/purchase On Jul 15, 3:05 pm, Adam Anderson wrote: > you need to use the assigns method like so > >  it "should count the number of purchase requests found" do >    get :index >    assigns(:num_found).should == 3 >  end > > On Wed, Jul 15,

[rspec-users] testing controller instance variables

2009-07-15 Thread Leo
because I'd create the stub in the test and verify that the stub I created is there. I want to make sure that the test will fail if I delete the line in the actual controller or change the name. Can someone show me how to do this? thanks in advance. Leo ___