In conclusion, restarting Tera Term fixed it.
【environment】 Main OS: Windows 10 Virtual environment: Vagrant, VirtualBox, TeraTerm (ver.4.99)
What happened while learning Chapter 6 of the Rails tutorial. When I try to run the rails test, the following instructions occur.
[vagrant@localhost sample_app]$ rails test Running via Spring preloader in process 14722 Migrations are pending. To resolve this issue, run: bin/rails db:migrate RAILS_ENV=test
When I try to run it as instructed, nothing is displayed, and when I run the test after that, the content is the same.
[vagrant@localhost sample_app]$ bin/rails db:migrate RAILS_ENV=test [vagrant@localhost sample_app]$ rails test Running via Spring preloader in process 14722 Migrations are pending. To resolve this issue, run: bin/rails db:migrate RAILS_ENV=test
Other executed commands ↓ ・ Rails db: migrate ・ Rails db: migrate: reset ・ Rails db: reset ・ Rails db: migrate: reset
I couldn't test by executing any command, and when I tried to see the contents of test.sqlite3 with TT, the characters were garbled, so I restarted TT.
After that, I ran the rails test and it ran without any problems. [vagrant@localhost sample_app]$ rails test Running via Spring preloader in process 15868 Started with run options --seed 31329
17/17: [=========================================================================================================================] 100% Time: 00:00:02, Time: 00:00:02
Finished in 2.31768s 17 tests, 37 assertions, 0 failures, 0 errors, 0 skips
Was it wrong to keep TT on for a few days?
Recommended Posts