mbklein / equivalent-xml

Easy equivalency tests for Nokogiri and Oga XML
MIT License
94 stars 29 forks source link

Ignore specified attrs #27

Closed paclough closed 10 years ago

paclough commented 10 years ago

Added an option to pass specific attr names to ignore. If no values are passed it works as usual. Needed this to handle VRA XML.

E.g. 'expect(doc1).to be_equivalent_to(doc2).ignoring_attr_values( 'order', 'status' )'

mbklein commented 10 years ago

The test failure was due to a Rakefile issue. This seems to be fine. Thanks for the contribution!