aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_specification.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-19 15:10:29 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-12 17:24:43 +0900
commit183174475c9cd51148f72668605390912339bcef (patch)
tree5dec1e15ea0255f8a16b3f4adbbcf73145f6caac /test/rubygems/test_gem_specification.rb
parent3c9633acfc5be293d27829c5a1f24a5efa2a5169 (diff)
downloadruby-183174475c9cd51148f72668605390912339bcef.tar.gz
[rubygems/rubygems] Use Regexp with refute_match
https://github.com/rubygems/rubygems/commit/51fdbe53bc
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r--test/rubygems/test_gem_specification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 0f895e3cf3..42988ad086 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -2619,7 +2619,7 @@ end
def test_to_yaml
yaml_str = @a1.to_yaml
- refute_match '!!null', yaml_str
+ refute_match %r|!!null|, yaml_str
same_spec = Gem::Specification.from_yaml(yaml_str)