collectiveidea / json_spec

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

undefined method parse_json #15

Closed tdgs closed 12 years ago

tdgs commented 12 years ago

When I try to use the be_json_eql matcher, I get the following error: Failure/Error: api_response.should be_json_eql(replay) NoMethodError: undefined method `parse_json' for #RSpec::Matchers::Matcher:0x7fe6041f2600

I have the latest version from github. If I change lines 5,6 for matchers.rb to use extend instead of include, everything seems to wokring fine.

I am using rspec v 2.5

laserlemon commented 12 years ago

I've released a new version which may address this issue. Could you please check to see if the problem still exists?

tdgs commented 12 years ago

Well, I wrote some matchers of my I own :). Thanks anyway! :):)