X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2d3972249c18fc5cd193a8b2f2efe9b46badb217..b3759c0d5811579a2a409b9c8c218d605cb62aa4:/test/integration/user_terms_seen_test.rb?ds=inline diff --git a/test/integration/user_terms_seen_test.rb b/test/integration/user_terms_seen_test.rb index 4bffd99de..46db48388 100644 --- a/test/integration/user_terms_seen_test.rb +++ b/test/integration/user_terms_seen_test.rb @@ -22,9 +22,8 @@ class UserTermsSeenTest < ActionDispatch::IntegrationTest get "/login" follow_redirect! assert_response :success - assert_template "users/login" + assert_template "sessions/new" post "/login", :params => { :username => user.email, :password => "test", :referer => "/diary/new" } - assert_response :redirect # but now we need to look at the terms assert_redirected_to :controller => :users, :action => :terms, :referer => "/diary/new" follow_redirect! @@ -47,9 +46,8 @@ class UserTermsSeenTest < ActionDispatch::IntegrationTest get "/login" follow_redirect! assert_response :success - assert_template "users/login" + assert_template "sessions/new" post "/login", :params => { :username => user.email, :password => "test", :referer => "/diary/new" } - assert_response :redirect # but now we need to look at the terms assert_redirected_to :controller => :users, :action => :terms, :referer => "/diary/new"