From 40642cd3bc581d3bb402ea5e8e61cdfb868b4f68 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 5 Feb 2024 16:29:57 +0100 Subject: Update to ruby/spec@3fc4444 --- spec/ruby/core/matchdata/byteoffset_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/ruby/core/matchdata/byteoffset_spec.rb') diff --git a/spec/ruby/core/matchdata/byteoffset_spec.rb b/spec/ruby/core/matchdata/byteoffset_spec.rb index 6036097834..b27267fd0e 100644 --- a/spec/ruby/core/matchdata/byteoffset_spec.rb +++ b/spec/ruby/core/matchdata/byteoffset_spec.rb @@ -60,7 +60,7 @@ describe "MatchData#byteoffset" do m.byteoffset(obj).should == [3, 6] end - it "raises IndexError if there is no group with provided name" do + it "raises IndexError if there is no group with the provided name" do m = /(?foo)(?bar)/.match("foobar") -> { @@ -72,7 +72,7 @@ describe "MatchData#byteoffset" do }.should raise_error(IndexError, "undefined group name reference: y") end - it "raises IndexError if index is out of matches" do + it "raises IndexError if index is out of bounds" do m = /(?foo)(?bar)/.match("foobar") -> { -- cgit v1.2.3