From 7ef141a7fc3bd089a9b8c31e69f702596ae91535 Mon Sep 17 00:00:00 2001 From: Timm Date: Sun, 21 Jul 2013 10:28:27 +0200 Subject: Removed redundant comments from assert_select. Cleaned up a comment. --- actionpack/lib/action_dispatch/testing/assertions/selector.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'actionpack/lib/action_dispatch/testing/assertions/selector.rb') diff --git a/actionpack/lib/action_dispatch/testing/assertions/selector.rb b/actionpack/lib/action_dispatch/testing/assertions/selector.rb index 2488e761f1..47e5c8e0e6 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/selector.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/selector.rb @@ -165,7 +165,6 @@ module ActionDispatch equals = filter.comparisons matches = filter.root.css(selector) - # If text/html, narrow down to those elements that match it. content_mismatch = nil filter_matches(matches, equals) do |mismatch| content_mismatch ||= mismatch @@ -188,7 +187,6 @@ module ActionDispatch end end - # Returns all matches elements. matches end @@ -370,7 +368,7 @@ module ActionDispatch raise ArgumentError, "First argument is either selector or element to select, but nil found. Perhaps you called assert_select with an element that does not exist?" elsif root_or_selector.is_a?(Nokogiri::XML::Node) # First argument is a node (tag or text, but also HTML root), - # so we know what we're selecting from, + # so we know what we're selecting from. @css_selector_is_second_argument = true root_or_selector -- cgit v1.2.3