Skip to content

Commit

Permalink
Merge pull request #102 from issyl0/fix-double-period-on-assert_select
Browse files Browse the repository at this point in the history
selector_assertions/html_selector: No trailing `.` on `content_mismatch`
  • Loading branch information
rafaelfranca authored Jul 14, 2022
2 parents 267b117 + 1f1df71 commit 71ccffb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def filter(matches)
content.sub!(/\A\n/, '') if text_matches && match.name == "textarea"

next if regex_matching ? (content =~ match_with) : (content == match_with)
content_mismatch ||= sprintf("<%s> expected but was\n<%s>.", match_with, content)
content_mismatch ||= sprintf("<%s> expected but was\n<%s>", match_with, content)
true
end

Expand Down

0 comments on commit 71ccffb

Please sign in to comment.