summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/matched_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringscanner/matched_spec.rb')
-rw-r--r--spec/ruby/library/stringscanner/matched_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringscanner/matched_spec.rb b/spec/ruby/library/stringscanner/matched_spec.rb
index c020bd3eae..95b57574c5 100644
--- a/spec/ruby/library/stringscanner/matched_spec.rb
+++ b/spec/ruby/library/stringscanner/matched_spec.rb
@@ -31,11 +31,11 @@ describe "StringScanner#matched?" do
it "returns true if the last match was successful" do
@s.match?(/\w+/)
- @s.matched?.should be_true
+ @s.matched?.should == true
end
it "returns false if there's no match" do
@s.match?(/\d+/)
- @s.matched?.should be_false
+ @s.matched?.should == false
end
end