I pulled the changes from the git
repo with git pull
. I then tried to run the tests in a Rails project:
$ DATABASE_ENV=test RAILS_ENV=test bundle exec rake test:all &> test.log
The tests fail with this error message:
$ cat test.log
bundler: failed to load command: rake (/Users/user_name/.rbenv/versions/2.7.3/bin/rake)
/Users/user_name/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.2.26/lib/bundler/definition.rb:490:in `materialize': Could not find addressable-2.8.0, addressable-2.8.0, addressable-2.8.0, nokogiri-1.12.5-x86_64-darwin, nokogiri-1.12.5-x86_64-darwin, racc-1.6.0, racc-1.6.0, racc-1.6.0 in any of the sources (Bundler::GemNotFound)
from /Users/user_name/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.2.26/lib/bundler/definition.rb:228:in `specs_for'
...
from /Users/user_name/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.2.26/exe/bundle:37:in `<top (required)>'
from /Users/user_name/.rbenv/versions/2.7.3/bin/bundle:23:in `load'
from /Users/user_name/.rbenv/versions/2.7.3/bin/bundle:23:in `<main>'
How can I fix this error and enable the tests to actually run?