From 7f7a1b5d6b9c651073cf66af844d7930eac29922 Mon Sep 17 00:00:00 2001 From: Timm Date: Sat, 17 Aug 2013 12:50:12 +0200 Subject: Removed unnecessary documentation in DomAssertions. --- actionview/lib/action_view/testing/assertions/dom.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/testing/assertions/dom.rb b/actionview/lib/action_view/testing/assertions/dom.rb index e604c68ee0..825720a56f 100644 --- a/actionview/lib/action_view/testing/assertions/dom.rb +++ b/actionview/lib/action_view/testing/assertions/dom.rb @@ -24,7 +24,6 @@ module ActionView return compare_doms(expected, actual), message end - # +compare_doms+ takes two doms loops over all their children and compares each child via +equal_children?+ def compare_doms(expected, actual) return false unless expected.children.size == actual.children.size @@ -34,9 +33,6 @@ module ActionView true end - # +equal_children?+ compares children according to their type - # Determines further comparison via said type - # i.e. element node children with equal names has their attributes compared using +attributes_are_equal?+ def equal_children?(child, other_child) return false unless child.type == other_child.type @@ -48,8 +44,6 @@ module ActionView end end - # +equal_attribute_nodes?+ sorts attribute nodes by name and compares - # each by calling +equal_attribute?+ def equal_attribute_nodes?(nodes, other_nodes) return false unless nodes.size == other_nodes.size nodes = nodes.sort_by(&:name) @@ -61,7 +55,6 @@ module ActionView true end - # +equal_attribute?+ compares attributes by their name and value def equal_attribute?(attr, other_attr) attr.name == other_attr.name && attr.value == other_attr.value end -- cgit v1.2.3