aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-08-02 09:52:14 -0500
committerGitHub <noreply@github.com>2017-08-02 09:52:14 -0500
commitc6974229d018b73f70e38ca8c8862473870d0274 (patch)
tree51a95d540eeece7a77c44166caa1ebf120027eba /activesupport
parent4c3c4182a7bde6a736c0b489276da9f77fc430f2 (diff)
parent869cb93de12141425b73f43e93f6e3730147b0ed (diff)
downloadrails-c6974229d018b73f70e38ca8c8862473870d0274.tar.gz
rails-c6974229d018b73f70e38ca8c8862473870d0274.tar.bz2
rails-c6974229d018b73f70e38ca8c8862473870d0274.zip
Merge branch 'master' into active-storage-import
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/cache/stores/mem_cache_store_test.rb2
-rw-r--r--activesupport/test/current_attributes_test.rb9
2 files changed, 9 insertions, 2 deletions
diff --git a/activesupport/test/cache/stores/mem_cache_store_test.rb b/activesupport/test/cache/stores/mem_cache_store_test.rb
index becc1f7fbf..1b73fb65eb 100644
--- a/activesupport/test/cache/stores/mem_cache_store_test.rb
+++ b/activesupport/test/cache/stores/mem_cache_store_test.rb
@@ -24,7 +24,7 @@ class MemCacheStoreTest < ActiveSupport::TestCase
@data = @cache.instance_variable_get(:@data)
@cache.clear
@cache.silence!
- @cache.logger = ActiveSupport::Logger.new("/dev/null")
+ @cache.logger = ActiveSupport::Logger.new(File::NULL)
end
include CacheStoreBehavior
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"