summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/values_at_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringscanner/values_at_spec.rb')
-rw-r--r--spec/ruby/library/stringscanner/values_at_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringscanner/values_at_spec.rb b/spec/ruby/library/stringscanner/values_at_spec.rb
index 14d4a5f6a7..b00cce0ffa 100644
--- a/spec/ruby/library/stringscanner/values_at_spec.rb
+++ b/spec/ruby/library/stringscanner/values_at_spec.rb
@@ -35,7 +35,7 @@ describe "StringScanner#captures" do
-> {
@s.values_at("foo")
- }.should raise_error(IndexError, "undefined group name reference: foo")
+ }.should.raise(IndexError, "undefined group name reference: foo")
end
end
@@ -54,7 +54,7 @@ describe "StringScanner#captures" do
-> {
@s.values_at([])
- }.should raise_error(TypeError, "no implicit conversion of Array into Integer")
+ }.should.raise(TypeError, "no implicit conversion of Array into Integer")
end
it "returns nil if the most recent matching fails" do