Follow Along as I Stumble on the Path to Learning RoR

RSpecs

It has not been a picnic using RSpecs.  One of the steeper learning curves I’ve found in Rails.  Here are some random tidbits I’ve found:

(1)  the rspec command doesn’t get recognized in Windows for me.  So I have to do: rake spec:controllers (or whichever folder)

(2) to run a single test, from the root directory, do:

bundle exec rspec spec/(path to file).rb

ie

bundle exec rspec spec/controllers/user_controller_spec.rb

Advertisements

Comments are closed.