waterlink / rspec-json_expectations

Set of matchers and helpers to allow you test your APIs responses like a pro.
https://www.relishapp.com/waterlink/rspec-json-expectations/docs
MIT License
140 stars 23 forks source link

Cannot deal with nil in values #8

Closed sheerun closed 9 years ago

sheerun commented 9 years ago

Following fails:

expect(phone: nil).to include_json(phone: nil)

NotImplementedError: expectation is not supported from /Users/sheerun/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-json_expectations-1.1.0/lib/rspec/json_expectations/json_traverser.rb:80:in `handle_unsupported'

waterlink commented 9 years ago

Thx for the catch!

waterlink commented 9 years ago

@sheerun Fixed in 1.1.1

sheerun commented 9 years ago

<3 Thank you!

On Mon, Jan 5, 2015 at 9:11 PM, Alexey Fedorov notifications@github.com wrote:

@sheerun https://github.com/sheerun Fixed in 1.1.1

— Reply to this email directly or view it on GitHub https://github.com/waterlink/rspec-json_expectations/issues/8#issuecomment-68770409 .