Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #79 from cameronhunter/master
Browse files Browse the repository at this point in the history
Accidental assignment in post-condition causing tests to pass which shouldn't
  • Loading branch information
Keita Fujii committed Dec 7, 2012
2 parents f0458ba + 69dcc70 commit 688f0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/conformance_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def assert_equal_without_attribute_order(expected, actual, failure_message = nil
def equal_nodes?(expected, actual)
return false unless expected.name == actual.name
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])
Expand Down

0 comments on commit 688f0f1

Please sign in to comment.