X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8ecbe9b07d60828c4d20fbf329696c12bd23b917..d1de8462d6a3b6828c63952e34079739e28823c4:/test/controllers/accounts/terms_controller_test.rb?ds=inline diff --git a/test/controllers/accounts/terms_controller_test.rb b/test/controllers/accounts/terms_controller_test.rb index 55b30506b..ea8cd4e9f 100644 --- a/test/controllers/accounts/terms_controller_test.rb +++ b/test/controllers/accounts/terms_controller_test.rb @@ -29,7 +29,7 @@ module Accounts session_for(user) get account_terms_path - assert_redirected_to edit_account_path + assert_redirected_to account_path end def test_show_not_seen_without_referer @@ -53,7 +53,7 @@ module Accounts session_for(user) put account_terms_path, :params => { :read_ct => 1, :read_tou => 1 } - assert_redirected_to edit_account_path + assert_redirected_to account_path assert_equal "Thanks for accepting the new contributor terms!", flash[:notice] user.reload @@ -82,8 +82,8 @@ module Accounts user = create(:user, :terms_seen => false, :terms_agreed => nil) session_for(user) - get edit_account_path - assert_redirected_to account_terms_path(:referer => "/account/edit") + get account_path + assert_redirected_to account_terms_path(:referer => account_path) end end end