r7kamura / rspec-json_matcher

RSpec matcher for testing JSON string
MIT License
171 stars 10 forks source link

Alias method for Rspec protocol compat. #5

Closed l15n closed 10 years ago

l15n commented 10 years ago

Hi @r7kamura

A follow up to #3. Adds method name from Rspec 3 protocol as an alias just to prevent noisy deprecation statements.

Notes:

r7kamura commented 10 years ago

Sounds good, thank you :+1:

I agree with you that the deprecation message from RSpec 3 is toooo noisy :sound: :sound: :sound:

--------------------------------------------------------------------------------
RSpec::JsonMatcher::FuzzyMatcher implements a legacy RSpec matcher
protocol. For the current protocol you should expose the failure messages
via the `failure_message` and `failure_message_when_negated` methods.
(Used from /Users/ryo-nakamura/src/github.com/r7kamura/rspec-json_matcher/spec/rspec/json_matcher_spec.rb:201:in `block (4 levels) in <top (required)>')
--------------------------------------------------------------------------------