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
Use require instead of load with test/unit/version #140
I took a brief look at the problem. If it is caused by a standard library being loaded first you should require the gem like below before any gem that depends on it. It sounds like they might have still had issues with this solution though. Thanks for taking the time looking into it!
require 'rubygems' # make sure we have gem method gem 'test-unit' # make sure to load the gem version require 'test/unit' # safe to require test/unit or let the dependent gem load it require 'mocha' # dependent gem
Your suggestion makes sense to me. I tried to reproduce the original problem with more recent versions of
However, this was fixed by using the
So I'm going to go ahead and merge your pull request. Thanks.