Closed george closed 10 years ago
If you can send a PR for this, it would be awesome ;) Ideally we should keep it working for both rspec 2 and 3. Preferably if we can just keep the existing require, detect the rspec version and load the right stuff conditionally. But if that's too difficult for some reason we can do a require 'json_expressions/rspec3
or something.
This is a pull request :) And a simple one at that; it merely aliases the new rspec 3 method names to the current rspec 2 names.
My bad :see_no_evil:
Alias new rspec matcher protocol names (rspec 3+) to the old (rspec 2). From https://www.relishapp.com/rspec/rspec-expectations/docs/changelog:
Update matcher protocol and custom matcher DSL to better align with the newer expect syntax. If you want your matchers to maintain compatibility with multiple versions of RSpec, you can alias the new names to the old. (Myron Marston)
Running
rspec v3.0.0.beta2
without this patch results in the following: