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.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s