2659: Fix anonymous token test.
authorTom Clegg <tom@curoverse.com>
Tue, 3 Feb 2015 23:22:03 +0000 (18:22 -0500)
committerTom Clegg <tom@curoverse.com>
Wed, 4 Feb 2015 00:24:57 +0000 (19:24 -0500)
apps/workbench/test/controllers/collections_controller_test.rb

index 67fc5c3c59b88cdcf1ac55e53466cbf5d1a5b45c..b92fa429dedc39f34d24538f2d8f072fd2134f90 100644 (file)
@@ -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')