summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index aa7e43b01..a59f70c85 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -61,6 +61,11 @@ class ActiveSupport::TestCase
self.use_transactional_tests = true
self.use_instantiated_fixtures = false
+ # Clear Settings cache after each test to prevent test interference
+ teardown do
+ Setting.clear_cache
+ end
+
def uploaded_test_file(name, mime)
fixture_file_upload(name.to_s, mime, true)
end