edit_user_url integration test error

Forums > Book - Chapter 3 > edit_user_url integration test error

Login to post a new topic

Author Message
blogimus
Member since 24 May 03:56
0 posts

For the integration test on page 80, is the test_valid_login function supposed to call edit_user_url(1) or another function? I get the following error when I run the itnegration test:
1) Failure:
test_valid_login(LoginStoriesTest)
[test/integration/login_stories_test.rb:8:in `test_valid_login’
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/integration.rb:547:in `run’]:
Expected response to be a <:redirect>, but was <200>

Samo
Member since 03 Mar 17:01
0 posts

I have the almost the same error but I’m getting a 500 and I can’t figure out why, because when I enter users/1/edit in my browser everything works fine. And I’ve verified that edit_uesr_url(1) == “http://www.example.com/uesrs/1/edit” so I’m really confused.