diff options
author | Timm <kaspth@gmail.com> | 2013-08-17 12:43:12 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:11 +0200 |
commit | 905d2bc605169fdc87b69276da1e40a9bc37b82d (patch) | |
tree | 12d68e2d75604641649c4b0037e6ca5c0d14a6c1 | |
parent | d6067e81934a491dc1bd6262930155d64f9df658 (diff) | |
download | rails-905d2bc605169fdc87b69276da1e40a9bc37b82d.tar.gz rails-905d2bc605169fdc87b69276da1e40a9bc37b82d.tar.bz2 rails-905d2bc605169fdc87b69276da1e40a9bc37b82d.zip |
Reworked some internal documentation for equal_attribute_nodes?.
-rw-r--r-- | actionview/lib/action_view/testing/assertions/dom.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionview/lib/action_view/testing/assertions/dom.rb b/actionview/lib/action_view/testing/assertions/dom.rb index 556b70a196..d290591fcc 100644 --- a/actionview/lib/action_view/testing/assertions/dom.rb +++ b/actionview/lib/action_view/testing/assertions/dom.rb @@ -49,9 +49,8 @@ module ActionView end end - # +attributes_are_equal?+ sorts elements attributes by name and compares - # each attribute by calling +equal_attribute?+ - # If those are +true+ the attributes are considered equal + # +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) |