Skip to content

Commit

Permalink
Merge pull request #1174 from herwinw/stringscanner_scan_until_indent
Browse files Browse the repository at this point in the history
Indentation fix in stringscanner/scan_until_spec
  • Loading branch information
herwinw committed Jun 29, 2024
2 parents e10c053 + bf911c1 commit d2e277e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/stringscanner/scan_until_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
end

it "returns the substring up to and including the end of the match" do
@s.scan_until(/a/).should == "This is a"
@s.pre_match.should == "This is "
@s.post_match.should == " test"
@s.scan_until(/a/).should == "This is a"
@s.pre_match.should == "This is "
@s.post_match.should == " test"
end

it "returns nil if there's no match" do
Expand Down

0 comments on commit d2e277e

Please sign in to comment.