The story of stopping because the rails test could not be done

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.

[[email protected] 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.

[[email protected] sample_app]$ bin/rails db:migrate RAILS_ENV=test [[email protected] 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. [[email protected] 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

The story of stopping because the rails test could not be done
The story of stopping because the rails test could not be done
The story that the forced update could not be implemented
The story that the forced update could not be implemented
Note that Insert could not be done with Spring Data JDBC
The story of stopping because the rails test could not be done
The story that the Servlet could not be loaded in the Java Web application
The story that the Servlet could not be loaded in the Java Web application
[Rails] Where to be careful in the description of validation
The story that I struggled because I couldn't do "Rails db: migrate".
Explanation of the order of rails routes
[Rails] The cause of not being able to post was in form_with
JSESSIONID could not be assigned to the URL when using Spring Security