<p>I want to be able to run a single spec file's tests &mdash; for the one file I'm editing, for example.  <code>rake spec</code> executes all the specs.  My project is not a Rails project, so <code>rake spec:doc</code> doesn't work.</p>

<p>Don't know if this matters, but here is my directory structure.</p>

<pre>
./Rakefile
./lib
./lib/cushion.rb
./lib/cushion
./lib/cushion/doc.rb
./lib/cushion/db.rb
./spec
./spec/spec.opts
./spec/spec_helper.rb
./spec/db_spec.rb
</pre>

The raw invocation:
```
rake spec SPEC=spec/controllers/sessions_controller_spec.rb \
          SPEC_OPTS="-e \"should log in with cookie\""
```
Now figure out how to embed this into your editor.