Closed jlw closed 5 years ago
Perhaps a similar cause, running an individual test file (per the same guide) also fails:
vagrant@rails-dev-box:/vagrant/rails$ bundle exec ruby -w -Itest railties/test/railties/engine_test.rb
Traceback (most recent call last):
1: from railties/test/railties/engine_test.rb:3:in `<main>'
railties/test/railties/engine_test.rb:3:in `require': cannot load such file -- isolation/abstract_unit (LoadError)
Maybe this was triggered by running local Rails apps on port 3000 (not within Vagrant / VirtualBox) between the time that I ran the full test suite and tried smaller sets? I did vagrant destroy; vagrant up
and now it is working as expected.
Thanks for operining the issue anyway.
The railties
command needs to be run in the railties
directory by the way.
Same problem here, with a brand new rails dev box on macOS 10.15.5:
vagrant@rails-dev-box:/vagrant/rails$ bundle exec ruby -w -Itest railties/test/application/system_test_case_test.rb
railties/test/application/system_test_case_test.rb:51: warning: assigned but unused variable - system_test
Traceback (most recent call last):
1: from railties/test/application/system_test_case_test.rb:3:in `<main>'
railties/test/application/system_test_case_test.rb:3:in `require': cannot load such file -- isolation/abstract_unit (LoadError)
The railties command needs to be run in the railties directory by the way.
Running the full test suite from
/vagrant/rails
works fine, but following the instructions in the Contributing to Ruby on Rails guide does not work.... and so on.
Is anyone else seeing this, or do I have something "special" in my brand new setup?