Alexander Seidl
2009-Nov-10 12:24 UTC
[rspec-users] This test should pass, but it does not :-/ Why?
http://gist.github.com/230814 -- Posted via http://www.ruby-forum.com/.
Alexander Seidl
2009-Nov-10 12:30 UTC
[rspec-users] This test should pass, but it does not :-/ Why?
Alexander Seidl wrote:> http://gist.github.com/230814I 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" -- Posted via http://www.ruby-forum.com/.
Alexander Seidl
2009-Nov-10 12:34 UTC
[rspec-users] This test should pass, but it does not :-/ Why?
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"argh, i know whats missing: get :assign *g* -- Posted via http://www.ruby-forum.com/.