Merge branch 'master' into 3112-report-bug
[arvados.git] / services / api / test / test_helper.rb
index dfebd92c45e102c58a4e4cfa3728ad46fa054f8e..72edfad17f56a8b0437e43b4c6144cd13b38a341 100644 (file)
@@ -49,6 +49,12 @@ class ActiveSupport::TestCase
     Thread.current[:api_client_uuid] = nil
     Thread.current[:api_client] = nil
     Thread.current[:user] = nil
+    # Restore configuration settings changed during tests
+    $application_config.each do |k,v|
+      if k.match /^[^.]*$/
+        Rails.configuration.send (k + '='), v
+      end
+    end
   end
 
   def set_user_from_auth(auth_name)