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
)
./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,
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
___