[rspec-users] This test should pass, but it does not :-/ Why?

Alexander Seidl lists at ruby-forum.com
Tue Nov 10 07:34:12 EST 2009

Alexander Seidl wrote:
> Alexander Seidl wrote:
>> http://gist.github.com/230814
> I should give some keywords here:
> I set an expectation in the test that a redirect_to should take place if 
> a certain condition is made: @login_user.categories.size <= 0.
> But the test fails and says: "expected redirect to {:action=>"index"}, 
> got no redirect"

i know whats missing: get :assign
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list