From 18b5b6fa43e380549c6698b9998990a748a9d3e8 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 3 Feb 2015 18:22:03 -0500 Subject: [PATCH] 2659: Fix anonymous token test. --- apps/workbench/test/controllers/collections_controller_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/workbench/test/controllers/collections_controller_test.rb b/apps/workbench/test/controllers/collections_controller_test.rb index 67fc5c3c59..b92fa429de 100644 --- a/apps/workbench/test/controllers/collections_controller_test.rb +++ b/apps/workbench/test/controllers/collections_controller_test.rb @@ -174,7 +174,8 @@ class CollectionsControllerTest < ActionController::TestCase "using a reader token set the session's API token") end - [false, true].each do |anon_conf| + [false, api_fixture('api_client_authorizations')['anonymous']['api_token']]. + each do |anon_conf| test "trying to get from Keep with an unscoped reader token prompts login (anon_configured=#{anon_conf})" do Rails.configuration.anonymous_user_token = anon_conf params = collection_params(:foo_file, 'foo') -- 2.30.2