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
`require': no such file to load -- mocha/mini_test (LoadError) #187
I have been trying to understand what I am missing when trying to run my tests using mocha.
I spot checked a few versions
group :development, :test do
Any ideas how I can fix this so I can get stubbing to work? I assume it worked at some point since it is being used, but I don't know when it was broken and what broke it.
Then all my tests fail regardless.
I think the problem is that you are looking at the README for v1.0.0.
If you look at the README alongside the relevant version tag, you should see the correct instructions.
I suspect the main thing you need to change is:
# Gemfile gem 'mocha', '~> 0.12.8', require: false # test_helper.rb require 'mocha'
I've added a new issue (#188) to add instructions for older versions to the current README to avoid this kind of confusion.
Thanks for the response. I have made the changes to both my gemfile and test helper and have now been presented with the following error: