We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff25a1 commit 32dab73Copy full SHA for 32dab73
library/stringscanner/unscan_spec.rb
@@ -21,8 +21,8 @@
21
@s.pos.should == pos
22
end
23
24
- it "raises a ScanError when the previous match had failed" do
25
- -> { @s.unscan }.should raise_error(ScanError)
26
- -> { @s.scan(/\d/); @s.unscan }.should raise_error(ScanError)
+ it "raises a StringScanner::Error when the previous match had failed" do
+ -> { @s.unscan }.should raise_error(StringScanner::Error)
+ -> { @s.scan(/\d/); @s.unscan }.should raise_error(StringScanner::Error)
27
28
0 commit comments