]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_terms_seen_test.rb
Allow a parameter to set the default value for the username
[rails.git] / test / integration / user_terms_seen_test.rb
index f30c5d98e700b47ee19f8d9d0d62037af1d04693..63f7f627a3e95ac3217f748971a9bec2bd15531b 100644 (file)
@@ -11,14 +11,14 @@ class UserTermsSeenTest < ActionController::IntegrationTest
     if REQUIRE_TERMS_SEEN
       user = users(:terms_not_seen_user)
 
-      get "/api/#{API_VERSION}/user/details", nil, auth_header(user.display_name, "test")
+      get "/api/#{API_VERSION}/user/preferences", nil, auth_header(user.display_name, "test")
       assert_response :forbidden
 
       # touch it so that the user has seen the terms
       user.terms_seen = true
       user.save
 
-      get "/api/#{API_VERSION}/user/details", nil, auth_header(user.display_name, "test")
+      get "/api/#{API_VERSION}/user/preferences", nil, auth_header(user.display_name, "test")
       assert_response :success
     end
   end