Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #79 from cameronhunter/master

Accidental assignment in post-condition causing tests to pass which shouldn't
  • Loading branch information...
commit 688f0f11ae89c5ed39faec3a243cb1333c17d602 2 parents f0458ba + 69dcc70
@keitaf keitaf authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/conformance_test.rb
2  test/conformance_test.rb
@@ -33,7 +33,7 @@ def assert_equal_without_attribute_order(expected, actual, failure_message = nil
def equal_nodes?(expected, actual)
return false unless ==
return false unless ordered_attributes(expected) == ordered_attributes(actual)
- return false if expected.text? && actual.text? && !(expected.content= actual.content)
+ return false if expected.text? && actual.text? && expected.content != actual.content
expected.children.each_with_index do |child, index|
return false unless equal_nodes?(child, actual.children[index])
Please sign in to comment.
Something went wrong with that request. Please try again.