On Sat, Jan 17, 2009 at 11:06 AM, Wincent Colaiuta <w...@wincent.com> 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'
I just posted about this on the wiki: http://wiki.github.com/dchelimsky/rspec-rails/configgem Please check that out and let us know if you have any trouble. Cheers, David > > 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' > ... > > So looks like back to plug-in for now. But still wanted to ask if anyone had > gotten this to work (this with current Rails 2.2.2). > > Cheers, > Wincent > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users