Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
having issue using mocha-0.12.10 with minitest 4.6.1 #143
Having this error when launching tests
I am using ruby 2.0.0 and rails 4.0.0.beta-1, also having this issue in 1.9.3.
I still having the same issue after update to v.0.13.2
Here is my gemfile:
Thanks. It looks like the problem is with
I'm not sure I want to make changes to Mocha to cope with this degree of monkey-patching, but I'll see if there is anything I can do. However, I do wonder whether
referenced this issue
Mar 5, 2013
As a quick (hacky) fix, you could add the following to the very top of your
require 'mocha/integration/test_unit' module Mocha::Integration::TestUnit def self.activate true end end
This will prevent Mocha from erroneously trying to setup Test::Unit integration.
In the meantime, I'll see if I can think of a longer term solution.
I have just pushed what I hope is a slightly better fix.
Would you be able to try it out by removing the hack above and instead changing the Mocha line in your
gem "mocha", git: "git://github.com/freerange/mocha.git", require: false
I still need to check that this doesn't introduce any regressions, but it would be really helpful to know whether or not it fixes your issue.