diff options
Diffstat (limited to 'spec/ruby/library/stringscanner/check_spec.rb')
-rw-r--r-- | spec/ruby/library/stringscanner/check_spec.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/spec/ruby/library/stringscanner/check_spec.rb b/spec/ruby/library/stringscanner/check_spec.rb index 21da785515..a97c26af83 100644 --- a/spec/ruby/library/stringscanner/check_spec.rb +++ b/spec/ruby/library/stringscanner/check_spec.rb @@ -14,14 +14,12 @@ describe "StringScanner#check" do @s.matched.should == nil end - ruby_version_is "2.7" do - it "treats String as the pattern itself" do - @s.check("This").should == "This" - @s.matched.should == "This" - @s.pos.should == 0 - @s.check(/is/).should == nil - @s.matched.should == nil - end + it "treats String as the pattern itself" do + @s.check("This").should == "This" + @s.matched.should == "This" + @s.pos.should == 0 + @s.check(/is/).should == nil + @s.matched.should == nil end end |