]> git.openstreetmap.org Git - rails.git/commitdiff
Change the test for whether the CTs have been seen to use the
authorMatt Amos <zerebubuth@gmail.com>
Sun, 1 May 2011 01:34:38 +0000 (02:34 +0100)
committerMatt Amos <zerebubuth@gmail.com>
Sun, 1 May 2011 01:34:38 +0000 (02:34 +0100)
user preferences API call rather than user details, as that one
is no longer blocked.

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