mbklein/equivalent-xml — pull request #7 by moklett (2012-10-29 21:11:19+00:00)
Title: Provides option to :ignore_content in equivalence checks

Using the `:ignore_content` option, you may provide one or more CSS selectors of nodes for which the content should be ignored when checking for equivalence.

For example, consider my list of devices and Sally's:

Mine:

```

iPhone
5
1234

```

Sally's:

```

iPhone
5
5678

```

By ignoring the `SerialNumber`, I am able to determine that we have the same list of devices, since for this purpose I don't care about a match on the `SerialNumber`.

```
EquivalentXml.equivalent?(mine, sallys)
# => false

EquivalentXml.equivalent?(mine, sallys, :ignore_content => "SerialNumber")
# => true

# Rspec
mine.should be_equivalent_to(sallys).ignoring_content_of("SerialNumber")
```

I'm pretty happy with the functionality of this, but I'm open to better suggestions for the option name... what do you think?