[rspec-users] Using a subversion repository to spec in a rails app

David Chelimsky dchelimsky at gmail.com
Tue Feb 27 08:29:09 EST 2007


On 2/27/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> On 2/27/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
> >
> > Is it a bad practice to use a subversion repository to the trunk of
> > rspec and rspec_on_rails?  Or rather, is it doomed to fail, since my
> > gem will always be out of date?
> >
> > I know I can't use spec, installed from gem,s if I have the latest
> > revision of rspec and rspec_on_rails checked into my plugins
> > directory.  But I should still be able to use it with the --drb
> > option, correct?
> >
> > I'm having a new set of bugs with my repository update to Revision
> > 1539...
> >
>
> I recommend installing a compatible set of RSpec/Rspec on Rails in
> plugins (same revision)
> Preferrably a tagged revision. Try 0.8RC1.
>
> Then use the spec command under plugins: vendor/plugins/rspec/bin/spec

I usually add a modified copy of vendor/plugins/rspec/bin/spec to
script/, so I can do this:

script/rails_spec_server &
script/spec spec --drb

Just make sure you change the second line to this:

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) +
"/../vendor/plugins/rspec/lib"))

>
> Aslak
>
> >
> > Scott
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list