While trying to migrate, I keep getting this error:
rake aborted!
test-unit is not part of the bundle. Add it to Gemfile.
If I'm using RSpec, can I just delete the test folder altogether?
While trying to migrate, I keep getting this error:
rake aborted!
test-unit is not part of the bundle. Add it to Gemfile.
If I'm using RSpec, can I just delete the test folder altogether?
This error means that somewhere inside your project there is a require test-unit
without it being specified in the Gemfile
.
So you should actually try to find that statement and remove it to fix this error (or add the dependency to the gemfile --but that sounds a bit backwards if you are not using it).
Anyway: you can definitely remove the test
folder if you are using rspec
.
Yes you can delete the test folder.
If you want test-unit though (due to other gem dependencies) here's how to install test-unit as a gem:
Add gem to Gemfile
gem 'test-unit'
Check gems
bundle check
Your Gemfile's dependencies could not be satisfied
Install missing gems with bundle install
Install
bundle install
Should be good to go.