I just stumbled upon an error that is similar or identical to this, and was able to solve it locally. For me, I had a trail that starts with:
/home/youruser/.rvm/gems/ruby-2.1.0/gems/mocha-0.10.5/lib/mocha/integration/mini_test/version_230_to_262.rb:19:in `run': uninitialized constant MiniTest::Unit::TestCase::SUPPORTS_INFO_SIGNAL (NameError)
This shows that the error actually occurs in mocha when it tries to refer to a constant that was removed from the minitest version, which probably came along with your Ruby update.
For me, doing bundle update mocha fixes the problem.
Carrying out a little markup of the code to find out exactly where the problem was fixed, I used "git pickaxe" ( git log -SSUPPORTS_INFO_SIGNAL ) on the cloned copy of the mocha repository, and this looks like this commit removed the link to SUPPORTS_INFO_SIGNAL , so using anything after that fixation in mocha should be in order.
If updating your version of mocha doesnβt solve the problem, look carefully at the stack trace and you should see which of the libraries, which depends on MINITEST, with SUPPORTS_INFO_SIGNAL set, is causing an error. Then look upstream in this dependency to make sure this problem is fixed. If not, the plug of the dependency you are using displays this behavior and pushes your own patch upstream.
source share