collectiveidea / json_spec

Easily handle JSON in RSpec and Cucumber
rubygems.org/gems/json_spec
MIT License
919 stars 114 forks source link

Allow include_json to match against subset hash at current position #79

Open martinstoev opened 10 years ago

martinstoev commented 10 years ago

I wanted to match an expected subset hash against the "current position". The scenario is the following: I have an API and the response should match the specified result. It is ok if there are more attributes, as this does not break the API.

Example in the specs.

ests commented 9 years ago

+1 for matching subset of a hash (similar to how rspec includes works).

Has this project been abandoned?