From d9ba5ff31fd8d5b59b1c52b561166e64bb7cf880 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 24 Sep 2011 15:13:40 +0100 Subject: [PATCH] Update tests for changes to login form --- test/integration/user_terms_seen_test.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/integration/user_terms_seen_test.rb b/test/integration/user_terms_seen_test.rb index 63f7f627a..eac5daf24 100644 --- a/test/integration/user_terms_seen_test.rb +++ b/test/integration/user_terms_seen_test.rb @@ -31,7 +31,7 @@ class UserTermsSeenTest < ActionController::IntegrationTest get_via_redirect "/login" assert_response :success assert_template 'user/login' - post "/login", {'user[email]' => user.email, 'user[password]' => 'test', :referer => "/"} + post "/login", {'username' => user.email, 'password' => 'test', :referer => "/"} assert_response :redirect # but now we need to look at the terms assert_redirected_to "controller" => "user", "action" => "terms", :referer => "/" @@ -57,7 +57,7 @@ class UserTermsSeenTest < ActionController::IntegrationTest get_via_redirect "/login" assert_response :success assert_template 'user/login' - post "/login", {'user[email]' => user.email, 'user[password]' => 'test', :referer => "/"} + post "/login", {'username' => user.email, 'password' => 'test', :referer => "/"} assert_response :redirect # but now we need to look at the terms assert_redirected_to "controller" => "user", "action" => "terms", :referer => "/" @@ -70,7 +70,4 @@ class UserTermsSeenTest < ActionController::IntegrationTest assert_redirected_to "controller" => "user", "action" => "terms", :referer => "/traces/mine" end end - end - - -- 2.39.5