Run specific Rspec test

Posted . Visible to the public.

Two ways of doing it:

rspec spec/models/foo_spec.rb:2

or

rake spec SPEC=spec/controllers/foo_controller_spec.rb \
          SPEC_OPTS="-e \"foo_description\""
hashharvest
Posted by hashharvest to Rails CheatSheets (2017-12-06 15:14)