Skip to content

Commit c424265

Browse files
committed
Make spec description for MatchData IndexError more readable
1 parent f625a9f commit c424265

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/ruby/core/matchdata/begin_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
match_data.begin(obj).should == 2
3838
end
3939

40-
it "raises IndexError if index is out of matches" do
40+
it "raises IndexError if index is out of bounds" do
4141
match_data = /(?<f>foo)(?<b>bar)/.match("foobar")
4242

4343
-> {

spec/ruby/core/matchdata/byteoffset_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def obj.to_int; 2; end
7272
}.should raise_error(IndexError, "undefined group name reference: y")
7373
end
7474

75-
it "raises IndexError if index is out of matches" do
75+
it "raises IndexError if index is out of bounds" do
7676
m = /(?<f>foo)(?<b>bar)/.match("foobar")
7777

7878
-> {

0 commit comments

Comments
 (0)