Blog Archives

Running a specific spec (e.g. test)

This is mostly a note to myself – babysteps, I was in the spec directory and tried running:

  • rspec my_test.rb

Bad idea, it ignored the my_test.rb and tried running through all the specs (test) in that directory, need to be on directory up (at least) and then run:

  • rspec spec/my_test.rb

So that only the one test suite is run.