[rspec-users] Vendoring rspec 1.1.12 as a gem
Matt Wynne
matt at mattwynne.net
Sat Jan 17 14:16:36 EST 2009
On 17 Jan 2009, at 17:06, Wincent Colaiuta wrote:
> Hi folks,
>
> Up until now I've always used RSpec as a plug-in in my vendor dir,
> but seeing as the gem is the endorsed way to install I decided I
> would try the gem this time (still vendoring it though because I
> vendor everything).
>
> Anyone had any luck doing that?
>
> Here's what I did. First, to get rspec and rspec-rails on the system:
>
> sudo gem install rspec-rails
>
> Then add a couple lines to my config/environments/test.rb file:
>
> config.gem 'rspec', :version => '1.1.12'
> config.gem 'rspec-rails', :version => '1.1.12'
>
> Then I tried vendoring the gems:
>
> RAILS_ENV=test rake gems:unpack
> (in /Users/wincent/app/src)
> no such file to load -- rspec-rails
> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
> ...
I think you might need to use something like this:
> config.gem 'rspec-rails', :version => '1.1.12', :lib => 'spec/rails'
Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com
More information about the rspec-users
mailing list