Skip to content

Commit

Permalink
Removed case statement in equal_children? used child.element? instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jun 16, 2014
1 parent 905d2bc commit 97d20b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actionview/lib/action_view/testing/assertions/dom.rb
Expand Up @@ -40,8 +40,7 @@ def compare_doms(expected, actual)
def equal_children?(child, other_child)
return false unless child.type == other_child.type

case child.type
when Nokogiri::XML::Node::ELEMENT_NODE
if child.element?
child.name == other_child.name &&
equal_attribute_nodes?(child.attribute_nodes, other_child.attribute_nodes)
else
Expand Down

0 comments on commit 97d20b1

Please sign in to comment.