assets/test/src/test_helper.rb in ruboto-1.5.0 vs assets/test/src/test_helper.rb in ruboto-1.6.0

- old
+ new

@@ -14,8 +14,12 @@ def assert_less_than_or_equal(limit, actual, message = nil) raise "#{"#{message}\n" if message}Expected '#{actual}' to be less than or equal to '#{limit}'" unless actual <= limit end -def assert_matches(pattern, actual, message = nil) +def assert_match(pattern, actual, message = nil) raise "#{"#{message}\n" if message}'#{pattern}' expected, but got '#{actual}'" unless pattern =~ actual +end +def assert_matches(*args) + warn '"assert_matches" is deprecated. Use "assert_match" instead, for Minitest compatibility.' + assert_match(*args) end