diff options
author | Akira Matsuda <ronnie@dio.jp> | 2019-07-29 14:05:51 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2019-07-29 14:17:36 +0900 |
commit | 26edd1d1128f26c63e673bd7f7ccf8ef73e5b069 (patch) | |
tree | 803a5345c52f034b2c6797aba5e41a74f31af6b3 /activesupport | |
parent | 8f90ac7827787a84b38055e1011ef9aedd89fe91 (diff) | |
download | rails-26edd1d1128f26c63e673bd7f7ccf8ef73e5b069.tar.gz rails-26edd1d1128f26c63e673bd7f7ccf8ef73e5b069.tar.bz2 rails-26edd1d1128f26c63e673bd7f7ccf8ef73e5b069.zip |
Revert "Use assert_match / assert_no_match for asserting match"
This reverts commit e9651deea4145f62224af56af027bfbb3e45e4cd.
Now we're having both `=~` and `match?` for these objects, and it's nicer to have explicit tests for both of them
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/time_zone_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb index eccacce32a..6ca3afd561 100644 --- a/activesupport/test/time_zone_test.rb +++ b/activesupport/test/time_zone_test.rb @@ -712,9 +712,9 @@ class TimeZoneTest < ActiveSupport::TestCase def test_zone_match zone = ActiveSupport::TimeZone["Eastern Time (US & Canada)"] - assert_match zone, /Eastern/ - assert_match zone, /New_York/ - assert_no_match zone, /Nonexistent_Place/ + assert zone =~ /Eastern/ + assert zone =~ /New_York/ + assert zone !~ /Nonexistent_Place/ end def test_zone_match? |