diff options
Diffstat (limited to 'spec/ruby/core/matchdata/byteoffset_spec.rb')
| -rw-r--r-- | spec/ruby/core/matchdata/byteoffset_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/matchdata/byteoffset_spec.rb b/spec/ruby/core/matchdata/byteoffset_spec.rb index fb8f5fb67d..062e84027c 100644 --- a/spec/ruby/core/matchdata/byteoffset_spec.rb +++ b/spec/ruby/core/matchdata/byteoffset_spec.rb @@ -64,11 +64,11 @@ describe "MatchData#byteoffset" do -> { m.byteoffset("y") - }.should raise_error(IndexError, "undefined group name reference: y") + }.should.raise(IndexError, "undefined group name reference: y") -> { m.byteoffset(:y) - }.should raise_error(IndexError, "undefined group name reference: y") + }.should.raise(IndexError, "undefined group name reference: y") end it "raises IndexError if index is out of bounds" do @@ -76,11 +76,11 @@ describe "MatchData#byteoffset" do -> { m.byteoffset(-1) - }.should raise_error(IndexError, "index -1 out of matches") + }.should.raise(IndexError, "index -1 out of matches") -> { m.byteoffset(3) - }.should raise_error(IndexError, "index 3 out of matches") + }.should.raise(IndexError, "index 3 out of matches") end it "raises TypeError if can't convert argument into Integer" do @@ -88,6 +88,6 @@ describe "MatchData#byteoffset" do -> { m.byteoffset([]) - }.should raise_error(TypeError, "no implicit conversion of Array into Integer") + }.should.raise(TypeError, "no implicit conversion of Array into Integer") end end |
