Executing examples directly Any file RSpec examples can be run directly from the command line: $ spec path/to/my_spec.rb [options] This will print the results to STDOUT. Use the —help option for more details. This is practical when you only want to run one file. If you want to run more, use the spec command or the Rake task. The spec command After you install RSpec, you should have the spec comman