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.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/stringscanner/matched_spec.rb b/spec/ruby/library/stringscanner/matched_spec.rb
index 1d781bd3ef..95b57574c5 100644
--- a/spec/ruby/library/stringscanner/matched_spec.rb
+++ b/spec/ruby/library/stringscanner/matched_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../shared/extract_range_matched', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'shared/extract_range_matched'
require 'strscan'
describe "StringScanner#matched" do
@@ -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