diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2024-02-15 13:00:32 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2024-02-15 18:42:31 +0900 |
commit | 8259f35adc67ab34bb521f0e8a298fb00629b958 (patch) | |
tree | b7ddb8c804334616362def40f380a29b3ffca6ea /spec/ruby/core/enumerator/product | |
parent | 25d74b9527cd525042ad0b612b794fa331d3a318 (diff) | |
download | ruby-8259f35adc67ab34bb521f0e8a298fb00629b958.tar.gz |
ruby-spec: Accept both a backtick and a single quote in error messages
Diffstat (limited to 'spec/ruby/core/enumerator/product')
-rw-r--r-- | spec/ruby/core/enumerator/product/each_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/enumerator/product/each_spec.rb b/spec/ruby/core/enumerator/product/each_spec.rb index 868a1ea6bf..cabeb9d93a 100644 --- a/spec/ruby/core/enumerator/product/each_spec.rb +++ b/spec/ruby/core/enumerator/product/each_spec.rb @@ -34,7 +34,7 @@ ruby_version_is "3.2" do it "raises a NoMethodError if the object doesn't respond to #each_entry" do -> { Enumerator::Product.new(Object.new).each {} - }.should raise_error(NoMethodError, /undefined method `each_entry' for/) + }.should raise_error(NoMethodError, /undefined method [`']each_entry' for/) end it "returns enumerator if not given a block" do |