Displaying 1 result from an estimated 1 matches for "account_signup_test".
2006 Jan 10
0
problem with cookies in tests (TDD)
...roblem I''m having is that I can''t seem to destroy the cookies and
assert that they were indeed destroyed inside the test.
The code to do this does work - the cookies are created, and are
destroyed when this is done in a browser, but I can''t seem to make the
test pass.
account_signup_test.rb
def test_should_pass_if_logout_destroys_cookie_data
post :login, { :user => { :login => ''ben'', :password => ''password''
}, :remember => 1 }
assert_equal(User.hash_password(''password''), cookies["password"][0])...