In your Gemfile
, specify gem 'shoulda-matchers', '1.4.1'
and then run bundle update shoulda-matchers
Explanation
shoulda-matchers 1.4.2 introduced a dependency on bourne, which is dependent on a version of mocha that is broken by minitest because run_setup_hooks
and run_teardown_hooks
have been removed from minitest.
Here's a bug report for shoulda-matchers that explains what's going on: https://github.com/thoughtbot/shoulda-matchers/issues/235
If you are affected by this problem, take a moment to +1 the bug report, so that it gets a little love.