Skip to content

Commit 71ccffb

Browse files
authored
Merge pull request #102 from issyl0/fix-double-period-on-assert_select
selector_assertions/html_selector: No trailing `.` on `content_mismatch`
2 parents 267b117 + 1f1df71 commit 71ccffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def filter(matches)
5252
content.sub!(/\A\n/, '') if text_matches && match.name == "textarea"
5353

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

0 commit comments

Comments
 (0)