aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Stollsteimer <sto.mar@web.de>2014-04-13 11:13:21 +0200
committerMarcus Stollsteimer <sto.mar@web.de>2014-04-13 11:13:21 +0200
commit8c81c9c423c0b463637976d5f00df760e2e733e1 (patch)
tree3946dc7131adf16e89b7ed5b371de17307f27d74
parent47d9321a1ee88368cc24de7cad5f42a28066d1a0 (diff)
downloadrails-8c81c9c423c0b463637976d5f00df760e2e733e1.tar.gz
rails-8c81c9c423c0b463637976d5f00df760e2e733e1.tar.bz2
rails-8c81c9c423c0b463637976d5f00df760e2e733e1.zip
Remove surplus period from assertion messages
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/selector.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/selector.rb b/actionpack/lib/action_dispatch/testing/assertions/selector.rb
index 8a128427bf..12023e6f77 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/selector.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/selector.rb
@@ -267,7 +267,7 @@ module ActionDispatch
text.strip! unless NO_STRIP.include?(match.name)
text.sub!(/\A\n/, '') if match.name == "textarea"
unless match_with.is_a?(Regexp) ? (text =~ match_with) : (text == match_with.to_s)
- content_mismatch ||= sprintf("<%s> expected but was\n<%s>.", match_with, text)
+ content_mismatch ||= sprintf("<%s> expected but was\n<%s>", match_with, text)
true
end
end
@@ -276,7 +276,7 @@ module ActionDispatch
html = match.children.map(&:to_s).join
html.strip! unless NO_STRIP.include?(match.name)
unless match_with.is_a?(Regexp) ? (html =~ match_with) : (html == match_with.to_s)
- content_mismatch ||= sprintf("<%s> expected but was\n<%s>.", match_with, html)
+ content_mismatch ||= sprintf("<%s> expected but was\n<%s>", match_with, html)
true
end
end
@@ -289,7 +289,7 @@ module ActionDispatch
# FIXME: minitest provides messaging when we use assert_operator,
# so is this custom message really needed?
- message = message || %(Expected #{count_description(min, max, count)} matching "#{selector.to_s}", found #{matches.size}.)
+ message = message || %(Expected #{count_description(min, max, count)} matching "#{selector.to_s}", found #{matches.size})
if count
assert_equal count, matches.size, message
else