From: Tom Clegg Date: Tue, 3 Feb 2015 23:22:03 +0000 (-0500) Subject: 2659: Fix anonymous token test. X-Git-Tag: 1.1.0~1844^2~7^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/18b5b6fa43e380549c6698b9998990a748a9d3e8?ds=sidebyside 2659: Fix anonymous token test. --- 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')