aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/current_attributes_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/current_attributes_test.rb')
-rw-r--r--activesupport/test/current_attributes_test.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/activesupport/test/current_attributes_test.rb b/activesupport/test/current_attributes_test.rb
index d333ffc8f5..1669f08f68 100644
--- a/activesupport/test/current_attributes_test.rb
+++ b/activesupport/test/current_attributes_test.rb
@@ -30,7 +30,14 @@ class CurrentAttributesTest < ActiveSupport::TestCase
end
end
- setup { Current.reset }
+ setup do
+ @original_time_zone = Time.zone
+ Current.reset
+ end
+
+ teardown do
+ Time.zone = @original_time_zone
+ end
test "read and write attribute" do
Current.world = "world/1"