diff options
author | Timm <kaspth@gmail.com> | 2013-07-21 10:28:27 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-15 23:40:59 +0200 |
commit | 7ef141a7fc3bd089a9b8c31e69f702596ae91535 (patch) | |
tree | 024bcf0acdd2a7e2baa3d145ba450c67fa247134 /actionpack/lib/action_dispatch/testing/assertions/selector.rb | |
parent | 332ccb35a19987d826ccf000238aa61c1db80de6 (diff) | |
download | rails-7ef141a7fc3bd089a9b8c31e69f702596ae91535.tar.gz rails-7ef141a7fc3bd089a9b8c31e69f702596ae91535.tar.bz2 rails-7ef141a7fc3bd089a9b8c31e69f702596ae91535.zip |
Removed redundant comments from assert_select.
Cleaned up a comment.
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions/selector.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/selector.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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 |