Testing
Testing con Cookies
Nota mental:
Las cookies con symbols regresan nil en el testing… deben ponerse como string.
def test_should_remember_me
@request.cookies['auth_token'] = nil
post :create, :login => ‘quentin’, :password => ‘monkey’,
:remember_me => ‘1′
assert users(:quentin).remember_token
assert @response.cookies['auth_token']
end
