Question

What is the difference between the following two statements?

  1. $spork --bootstrap

  2. $spork

Was it helpful?

Solution

The --bootstrap argument will update your test helper file with the code to run when Spork is starting. If you are using rspec, then it will add the boilerplate code to initialize spork and rsepc in your rspec_helper.rb file.

You should only run spork --bootstrap once when you are setting up a new test framework. To run spork and your tests, you should just run spork.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top