Run only some tests in RSpec
When working with fairly big test suites in RSpec you do not want to run all tests always. Especially with Red-Green-Refactor you are only interested in some tests, sometimes even only in one describe block. RSpec helps you with this. You can specify specific files to be run:
spec spec/models/my_model_spec.rb spec spec/models/my_model_spec.rb spec/models/your_model_spec.rbSometimes spec-files get too big. Luckily RSpec allows to only execute blocks starting at a certain line in a file.
spec -l 548 spec/models/my_model_spec.rb