aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2019-07-27 12:49:45 +0900
committerAkira Matsuda <ronnie@dio.jp>2019-07-27 13:06:49 +0900
commite9651deea4145f62224af56af027bfbb3e45e4cd (patch)
treee47775d49628bb9247ca6169cc78eca87100d0e3 /activesupport
parent6f35244defbb410373a9ffca8468ab482800ffd9 (diff)
downloadrails-e9651deea4145f62224af56af027bfbb3e45e4cd.tar.gz
rails-e9651deea4145f62224af56af027bfbb3e45e4cd.tar.bz2
rails-e9651deea4145f62224af56af027bfbb3e45e4cd.zip
Use assert_match / assert_no_match for asserting match
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/time_zone_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb
index f948c363df..0c3a10995c 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 zone =~ /Eastern/
- assert zone =~ /New_York/
- assert zone !~ /Nonexistent_Place/
+ assert_match zone, /Eastern/
+ assert_match zone, /New_York/
+ assert_no_match zone, /Nonexistent_Place/
end
def test_to_s