13996: Update tests for cleaner config access
[arvados.git] / services / api / test / functional / arvados / v1 / groups_controller_test.rb
index ff86f0493369ed82ea56d809db3b02213626dab4..cefb7f383076f27c65cfe3e07b2af97bab8dd9a6 100644 (file)
@@ -431,7 +431,7 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
   end
 
   test 'get contents with jobs and pipeline instances disabled' do
-    Rails.configuration.API["DisabledAPIs"] = ['jobs.index', 'pipeline_instances.index']
+    Rails.configuration.API.DisabledAPIs = ['jobs.index', 'pipeline_instances.index']
 
     authorize_with :active
     get :contents, params: {
@@ -444,7 +444,7 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
   test 'get contents with low max_index_database_read' do
     # Some result will certainly have at least 12 bytes in a
     # restricted column
-    Rails.configuration.API["MaxIndexDatabaseRead"] = 12
+    Rails.configuration.API.MaxIndexDatabaseRead = 12
     authorize_with :active
     get :contents, params: {
           id: groups(:aproject).uuid,