2010/1/26 Vishwa Rao <[email protected]>: > I have this method in user_controller_test.rb file > def test_auth_bob > #check we can login > post :login, :user=> { :login => "bob", :password => "test" } > assert_session_has :user > assert_equal @bob, session[:user] > assert_response :redirect > assert_redirected_to :action=>'welcome' > end > > I get this Error: > test_auth_bob(UserControllerTest): > NoMethodError: undefined method `assert_session_has' for > #<UserControllerTest:0x > 28772e0>
A quick google search shows assert_session_has as being deprecated in 2006, so presumably it is now gone. You will have to do it a different way. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

