X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8f1554cf9cfc279e0127d7ea2c7a79a98e323f13..b3f3c28f67519f23a4b734b2a75eaf4f32c0049f:/apps/workbench/test/test_helper.rb diff --git a/apps/workbench/test/test_helper.rb b/apps/workbench/test/test_helper.rb index 1195798312..5253676578 100644 --- a/apps/workbench/test/test_helper.rb +++ b/apps/workbench/test/test_helper.rb @@ -36,10 +36,15 @@ class ActiveSupport::TestCase Thread.current[:arvados_api_token] = auth['api_token'] end - def teardown + teardown do Thread.current[:arvados_api_token] = nil Thread.current[:reader_tokens] = nil - super + # Restore configuration settings changed during tests + $application_config.each do |k,v| + if k.match /^[^.]*$/ + Rails.configuration.send (k + '='), v + end + end end end