Skip to content

Instantly share code, notes, and snippets.

@hyeomans
Created December 12, 2012 18:32
Show Gist options
  • Save hyeomans/4270322 to your computer and use it in GitHub Desktop.
Save hyeomans/4270322 to your computer and use it in GitHub Desktop.
Testing environment for Rails
1.- Start Spork in a terminal window.
2.- Write a single test or small group of tests.
3.- Run Command-Shift-R to verify that the test or test group is red.
4.- Write the corresponding application code.
5.- Run Command-Shift-E to run the same test/group again, verifying that it’s green.
6.- Repeat steps 2–5 as necessary.
7.- When reaching a natural stopping point (such as before a commit), run rspec spec/ at the command line to confirm that the entire test suite is still green.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment