assert_template "sessions/new"
post login_path, :params => { :username => user.display_name, :password => "test" }
assert_template "sessions/new"
post login_path, :params => { :username => user.display_name, :password => "test" }
assert_redirected_to root_path
post login_path, :params => { :username => " #{user.display_name}", :password => "test" }
assert_redirected_to root_path
post login_path, :params => { :username => " #{user.display_name}", :password => "test" }
assert_redirected_to root_path
post login_path, :params => { :username => "#{user.display_name} ", :password => "test" }
assert_redirected_to root_path
post login_path, :params => { :username => "#{user.display_name} ", :password => "test" }
assert_redirected_to root_path
end
def test_logout_with_referer
post logout_path, :params => { :referer => "/test" }
assert_redirected_to root_path
end
def test_logout_with_referer
post logout_path, :params => { :referer => "/test" }
post user_new_path, :params => { :user => user.attributes }
post user_save_path, :params => { :read_ct => 1, :read_tou => 1 }
post logout_path
post user_new_path, :params => { :user => user.attributes }
post user_save_path, :params => { :read_ct => 1, :read_tou => 1 }
post logout_path