collectiveidea / json_spec

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

Path doesn't seem to be reset #17

Closed flomotlik closed 12 years ago

flomotlik commented 12 years ago

After calling at_path in one spec it is still set to a particular value when running another spec. This breaks the other Test of course.

It started after updating rspec-rails to 2.8.1. 2.7.0 works fine. Not sure if it is an rspec-rails or json_spec issue though.

rspec-rails 2.8.1 json_spec 0.7.0 ruby 1.9.2

I went back to 2.7.0 for now, but hopefully this can be resolved.

thx

laserlemon commented 12 years ago

This stemmed from a bug in the latest RSpec. See: https://github.com/rspec/rspec-expectations/issues/104

I just released json_spec v0.8.0 which avoids this issue by building the matchers as classes. Please let me know if the new release doesn't clear up the issue. Thanks!