Skip to content

Commit

Permalink
Removed redundant comments from assert_select.
Browse files Browse the repository at this point in the history
Cleaned up a comment.
  • Loading branch information
kaspth committed Jun 15, 2014
1 parent 332ccb3 commit 7ef141a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def assert_select(*args, &block)
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
Expand All @@ -188,7 +187,6 @@ def assert_select(*args, &block)
end
end

# Returns all matches elements.
matches
end

Expand Down Expand Up @@ -370,7 +368,7 @@ def determine_root_from(root_or_selector)
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
Expand Down

0 comments on commit 7ef141a

Please sign in to comment.