Displaying 1 result from an estimated 1 matches for "test_login_with_valid_us".
Did you mean:
test_login_with_valid_user
2005 Nov 19
1
How I provide a session object to Functional Tests?
People,
I''m looking at p. 152 in the Rails book where he talks about testing
controllers [ functional tests ].
First he shows a method, test_login_with_valid_user, which tests
that it''s possible to login with a valid user/password combo.
Then, he talks about extracting the code he just wrote and placing it
into a login method inside of test_helper.rb
Once the method is there, he can re-use the login method in later
functional tests
of the LoginC...