[rspec-users] On debugging rspec; running all specs under multiple directories
aslak.hellesoy at gmail.com
Tue Feb 27 07:41:15 EST 2007
On 2/27/07, Jerry West <jerry.west at ntlworld.com> wrote:
> > One thing I would like to do is run all of the specs in the rspec
> > library to see if they are passing. - the ones that fail will
> > probably point to the culprit. How can I run all of the specs under
> > one directory, if the specs are under subdirectories? This maybe
> > more of a unix question then an rspec one...
> Well, for the 0.7.5.1 plugin
> cd $RAILSDIR; spec -cfs vendor/plugins/rspec_on_rails/spec/
> I imagine the filesystem layout is the same for 0.8/trunk(?).
> Ironically, you can't run many of the 0.7.5.1 specs under 0.7.5.1 as
> they use the latest 'should' syntax available only with 0.8RC1/trunk.
You can, but instead of saying "spec" (which will run your
gem-installed spec) you have to say "bin/spec" (assuming you're
standing in the root directory of rspec core)
> Hope this helps,
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users