From 3700b534e404a25ef5db1bb8283bae3cddb818fb Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Sun, 1 May 2011 02:34:38 +0100 Subject: [PATCH 1/1] 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. --- test/integration/user_terms_seen_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2