aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2013-08-17 12:50:12 +0200
committerTimm <kaspth@gmail.com>2014-06-16 21:04:11 +0200
commit7f7a1b5d6b9c651073cf66af844d7930eac29922 (patch)
tree9c5fc9a4534fcaf61f0ac8e933fd483321e25991 /actionview/lib
parent97d20b14171db8378028b1743d9841d802192eda (diff)
downloadrails-7f7a1b5d6b9c651073cf66af844d7930eac29922.tar.gz
rails-7f7a1b5d6b9c651073cf66af844d7930eac29922.tar.bz2
rails-7f7a1b5d6b9c651073cf66af844d7930eac29922.zip
Removed unnecessary documentation in DomAssertions.
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/testing/assertions/dom.rb7
1 files changed, 0 insertions, 7 deletions
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