[rspec-users] [Rspec-users] How to run edge RSpec (on Rails)?

David Chelimsky dchelimsky at gmail.com
Wed Nov 1 22:32:56 EST 2006


On 11/1/06, George Anderson <george at benevolentcode.com> wrote:
> Thanks, Aslak.  I *think* I've got it straight now. And my apologies for
> injecting noise into the tracker.  My mistake.
>
> Does this sound like the proper way to track edge RSpec and RSpec on Rails
> development?
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Check out RSpec trunk from:
> svn://rubyforge.org/var/svn/rspec/trunk
> Check out RSpec trunk into its own project, or if you're interested in
> using/learning RSpec for a particular Rails project, consider using
> svn:externals to check out RSpec trunk into your [RailsRoot]/vendor
> directory:
>
> svn propset svn:externals "rspec
> svn://rubyforge.org/var/svn/rspec/trunk" vendor
>
> then update to grab the latest code from RSpec trunk:
>
> svn update vendor
>
> Next, build the gem.  You have to be standing in vendor/rspec if you're
> using svn:externals (as described above) or the root of RSpec if you checked
> it out as its own project.
>
> rake gem
>
> then install it:
>
> gem install pkg/rspec-X.X.X.gem (where X.X.X is the version number reported
> in the output from "rake gem")
>
> (Note: you can always uninstall the *edge* RSpec gem via "gem uninstall
> rspec")
>
>
> Now that you've installed the *edge* RSpec gem, you MUST install the *edge*
> RSpec on Rails plugin:
>
> script/plugin install -x
> svn://rubyforge.org/var/svn/rspec/trunk/vendor/rspec_on_rails/vendor/plugins/rspec
>
> This will install the RSpec on Rails plugin via svn:externals so it will
> always track trunk development.
>
>
> One last, MANDATORY step:  you must bootstrap your Rails app with RSpec.
> Standing in [RailsRoot]:
>
> script/generate rspec
>
> Be sure to overwrite files if prompted.
>
> In summary:
> 1. check out RSpec trunk
> 2. build the gem
> 3. install the gem
> 4. install the RSpec on Rails plugin from trunk
> 5. bootstrap you Rails app with RSpec
> 6. there is no step 6! (with apologies to Instiki)
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> I think those steps are fairly accurate, but I'd appreciate any critical
> input.
>
> I'd be happy to markup the steps for inclusion in
> http://rspec.rubyforge.org/documentation/rails/ if it would
> be appropriate.

Thanks for documenting this. I need to review to make sure it's
accurate, but will add a page on this to the website for the 0.7
release.

FYI - we generate the website using webgen, so marking it up in html
won't be useful for us - but thank you for the offer!

>
> Thanks again for your help,
>
> George
>
>
> On 11/1/06, aslak hellesoy < aslak.hellesoy at gmail.com> wrote:
> > On 11/1/06, George Anderson <george at benevolentcode.com> wrote:
> > > Thanks, David.
> > >
> > > I successfully built and installed the gem, but I'm running into an
> > > issue similar to one Aslak reported:
> > >
> > >
> http://rubyforge.org/tracker/index.php?func=detail&aid=6411&group_id=797&atid=3149
> > >
> > > I've added the details of my issue as a followup to his ticket.
> > >
> >
> > Your problem seems to be unrelated to the issue I reported (your
> > exception is completely different than mine). It looks like your RSpec
> > on Rails is incompatible with your RSpec gem.
> >
> > 1) What RSpec version do you have? (a downloaded gem? self-built gem/svn
> rev?)
> > 2) Are you running RSpec on Rails from trunk/HEAD or a particular svn
> > tagged revision?
> >
> > Aslak
> >
> > > Thanks again,
> > >
> > > George
> > >
> > > On 10/31/06, David Chelimsky < dchelimsky at gmail.com> wrote:
> > > > On 10/31/06, George Anderson <george at benevolentcode.com> wrote:
> > > > > I'm interested in tracking edge development of the RSpec on Rails
> > > > > plugin and I'm a bit confused.
> > > > >
> > > > > The installation guide
> > > > >
> (http://rspec.rubyforge.org/documentation/rails/install.html
> ) says,
> > > > > "You'll have to install the RSpec core gem first."  It also says,
> > > > > "Take note of what rspec version you're installing – it's very
> > > > > important that you install a compatible RSpec on Rails plugin."
> > > > >
> > > > > >From the "Installation" section (for RSpec on Rails) I understand
> how
> > > > > to track the HEAD of trunk for the plugin development, but I'm not
>  > > > > sure if I can use the edge plugin with the RSpec core gem (via "gem
> > > > > install rspec").
> > > > >
> > > > > In order to use the edge plugin, do I also need to use edge rspec?
> > > >
> > > > Yes.
> > > >
> > > > > If so, how do I install edge rspec and ensure it gets used instead
> of
> > > > > the RSpec gem (0.6.4)?
> > > >
> > > > check out the trunk
> > > > read the README - that should tell you what you need to build rspec
> > > > once you have the dependencies in place you should be able to do this:
> > > >
> > > > rake gem
>  > > > gem install pkg/rspec-X.X.X.gem
> > > >
> > > > Let us know if that works for you.
> > > >
> > > > Cheers,
> > > > David
> > > >
> > > > >
> > > > > I've done my best to RTFM, but I'm still climbing the Ruby curve and
> > > > > apparently missing some key bits to pull this together.
> > > > >
> > > > > Thanks for any direction you might provide.
> > > > >
> > > > > /george
> > > > > _______________________________________________
> > > > > 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
> > > >
> > > _______________________________________________
> > > 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