From: Matt Amos Date: Sun, 1 May 2011 01:34:38 +0000 (+0100) Subject: Change the test for whether the CTs have been seen to use the X-Git-Tag: live~6278^2~26 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3700b534e404a25ef5db1bb8283bae3cddb818fb?hp=c738c964aa3ceb2dd1dcd44a94b735753235b595 Change the test for whether the CTs have been seen to use the user preferences API call rather than user details, as that one is no longer blocked. --- diff --git a/test/integration/user_terms_seen_test.rb b/test/integration/user_terms_seen_test.rb index f30c5d98e..63f7f627a 100644 --- a/test/integration/user_terms_seen_test.rb +++ b/test/integration/user_terms_seen_test.rb @@ -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