Update: You can specify a line number to run in your spec if you’re wanting to run a specific spec. Example:
Tired of looking this up and want to use my writing part of my brain to blog it:
rake spec SPEC=spec/controllers/sessions_controller_spec.rb \ SPEC_OPTS="-e \"should log in with cookie\""
This is importatnt to me while coding Rails because if I just run
the test database isn’t cleared out. By running
rake spec I get that.