jdliss / shoulda-callback-matchers

Test existence of your Rails callbacks without having to call them
MIT License
134 stars 18 forks source link

Rails 4.1.10 & Mocha 0.14.0 & Shoulda Callback Matchers 1.1.2 #13

Closed tbrammar closed 9 years ago

tbrammar commented 9 years ago

I had trouble getting Mocha to work with Rails 4.1 and tracked it down to an issue with the Shoulda Callback Matchers gem and how it declares Test::Unit::TestCase class.

You can follow the discussion there and how we resolved it, but it may help if you adapt the way to you declare Test::Unit::TestCase class to be a bit more specific.

beatrichartz commented 9 years ago

Thanks for reporting this, I included Mocha in the test setup and fixed the issue. Release 1.1.3 should work without workaround.