summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/skip_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringscanner/skip_spec.rb')
-rw-r--r--spec/ruby/library/stringscanner/skip_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/stringscanner/skip_spec.rb b/spec/ruby/library/stringscanner/skip_spec.rb
index 12f5b7781c..2b955b3172 100644
--- a/spec/ruby/library/stringscanner/skip_spec.rb
+++ b/spec/ruby/library/stringscanner/skip_spec.rb
@@ -26,7 +26,7 @@ describe "StringScanner#skip" do
it "returns nil when matching failed" do
@s.skip(/(?<a>2008)/)
@s.should_not.matched?
- @s[:a].should be_nil
+ @s[:a].should == nil
end
end
end