]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/accounts/terms_controller_test.rb
Merge remote-tracking branch 'upstream/pull/5703'
[rails.git] / test / controllers / accounts / terms_controller_test.rb
index 55b30506b41f1bba226869a57125ba088e91bb9b..ea8cd4e9fff5ce39523b04db17b53dd81d2d6b5a 100644 (file)
@@ -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