I have been unable to run tests on my computer, but when I push the branch to GitHub, and they pull it in, they are able to run them.
Clearly this means that our codebases are identical, including Gemfile
and Gemfile.lock
.
My app works in development
, so my gems are obviously present.
What could be different in the test
environment that prevents the tests from running?
The only thing I can think of is that there is something outside the codebase responsible for this. Perhaps something under ~/.gem/
or ~/.rvm/
-- but I don't know where to look for clues. Thoughts?
Error from test attempt:
/Users/bsimpson/.rvm/gems/ruby-2.0.0-p481@books/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require': cannot load such file -- minitest/rails (LoadError)
from /Users/bsimpson/.rvm/gems/ruby-2.0.0-p481@books/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
from /Users/bsimpson/.rvm/gems/ruby-2.0.0-p481@books/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/bsimpson/.rvm/gems/ruby-2.0.0-p481@books/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
from /Volumes/MyHD/Users/bsimpson/Dev/books/books/test/test_helper.rb:10:in `<top (required)>'
from test/controllers/photos_controller_test.rb:1:in `require'
from test/controllers/photos_controller_test.rb:1:in `<main>'
gem list --local | grep minitest
minitest (4.7.5, 4.3.2)
minitest-capybara (0.5.0)
minitest-metadata (0.5.0)
minitest-rails (0.9.2)
minitest-rails-capybara (0.10.0)
minitest-test (1.1.0)