June 2011 Archives

A quickie for the Rails developers in the audience.

Step 1: At the top of your spec file, add #!/usr/bin/env ruby -S bundle exec rspec
Step 2: chmod +x spec/models/whatever_spec.rb

Now it's easy to run that one specfile that's giving you trouble, without remembering the command-line magic to run a single test. Works (with modifications) with Cucumber files, and probably TestUnit, too.

About this Archive

This page is an archive of entries from June 2011 listed from newest to oldest.

January 2011 is the previous archive.

August 2011 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.2-en