equivalent-xml icon indicating copy to clipboard operation
equivalent-xml copied to clipboard

Ability to set global default options

Open philnash opened this issue 7 years ago • 1 comments

First up, thanks for this gem! It is exactly what I need for testing some XML output and is vastly simplifying a lot of code I wrote. Thank you!

One thing I would like to change is the ability to set the default options. In my tests I always want to respect element order, yet I have to call (using the rspec matchers) .respecting_element_order every time. I'd prefer to be able to set that once for my test suite and not have to repeat myself.

I'd love to help add this, if you're interested. Let me know.

philnash avatar Feb 12 '18 01:02 philnash

I'd be happy to merge a pull request that provides a good mechanism for the kind of default behavior you're talking about. Feel free to fork, and hit me up for questions/check-ins if you need. :)

mbklein avatar Feb 19 '18 19:02 mbklein