diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-08-31 16:19:58 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-08-31 16:19:58 +0900 |
commit | 12fadea8aee3981654149d6e8ff5099bca31c679 (patch) | |
tree | c4face012f1da41a6e556c3b3a71e6c02c86b17d | |
parent | d48f4ddfc8dd38b65f7a040c5c9c7d1468114d2d (diff) | |
download | rails-12fadea8aee3981654149d6e8ff5099bca31c679.tar.gz rails-12fadea8aee3981654149d6e8ff5099bca31c679.tar.bz2 rails-12fadea8aee3981654149d6e8ff5099bca31c679.zip |
Remove redundant `travel_back`
Since #29860, `travel_back` automatically called at the end of the test.
-rw-r--r-- | activerecord/test/cases/dirty_test.rb | 2 | ||||
-rw-r--r-- | activesupport/test/metadata/shared_metadata_tests.rb | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb index 1f0e770a93..b1ebd20d6b 100644 --- a/activerecord/test/cases/dirty_test.rb +++ b/activerecord/test/cases/dirty_test.rb @@ -567,8 +567,6 @@ class DirtyTest < ActiveRecord::TestCase assert_not_nil pirate.previous_changes["updated_on"][1] assert_not pirate.previous_changes.key?("parrot_id") assert_not pirate.previous_changes.key?("created_on") - ensure - travel_back end class Testings < ActiveRecord::Base; end diff --git a/activesupport/test/metadata/shared_metadata_tests.rb b/activesupport/test/metadata/shared_metadata_tests.rb index 08bb0c648e..cf571223e5 100644 --- a/activesupport/test/metadata/shared_metadata_tests.rb +++ b/activesupport/test/metadata/shared_metadata_tests.rb @@ -1,11 +1,6 @@ # frozen_string_literal: true module SharedMessageMetadataTests - def teardown - travel_back - super - end - def null_serializing? false end |