Using Spring
Learn to use Spring and learn about its disadvantages.
Using Spring
Spring defines a half dozen or so subcommands that can all be called with syntax like bundle exec spring <command>
. Let’s try running <command>
in the terminal below:
After we run the tests, we can check the status of Spring again:
$ bundle exec spring status
After we run my tests, Spring stays running in the background, as confirmed by the spring status
update. If we then enter the Rails console or Rails server, Spring will start up another instance in the development environment and hold onto both of them in the background.
Running the test again
If we then run our tests again with another spring rspec
, the tests will start noticeably faster, but sadly, not in a way we can show ourselves by running another set of commands. Since the part that is ...