Last active
December 16, 2015 08:09
-
-
Save IanVaughan/5404181 to your computer and use it in GitHub Desktop.
Running a single fucking test spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ActiveSupport::TestCase | |
| ruby -I"lib:test" test/unit/file.rb -n test_name | |
| # rspec v1 (http://stackoverflow.com/a/143934/119790) | |
| rake spec SPEC=spec/controllers/sessions_controller_spec.rb \ | |
| SPEC_OPTS="-e \"should log in with cookie\"" | |
| # or | |
| spec spec/controllers/sessions_controller_spec.rb -l 73 | |
| # rspec v2 | |
| rspec models/user_spec.rb:27 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment