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.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index ea47670c0..e8474de15 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -87,6 +87,7 @@ class ActiveSupport::TestCase
saved_settings = options.keys.inject({}) {|h, k| h[k] = Setting[k].dup; h}
options.each {|k, v| Setting[k] = v}
yield
+ ensure
saved_settings.each {|k, v| Setting[k] = v}
end