[rspec-users] controller code doesn't seem to be called within rspec test

Alexander Seidl lists at ruby-forum.com
Wed Oct 21 09:56:53 EDT 2009

I started a new test: Have a look at my new code:

1) The categories_controller is NOT called from the test!

2) I created another example with a message_controller and associated 
tests. There, the controller IS called!

You can see that, because the puts statement produces output in 2), but 
not in 1).

Could the reason for this be the fact, that User::CategoriesController 
inherits from UserController??


Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list