rails tries to require 'rspec' and 'rspec-rails'. but the rspec library is 'spec' and the rspec-rails is 'spec/rails'. :lib => 'spec' / :lib => 'spec/rails' would work too, but since you only want to load the rspec/rails libs when you are actually running specs, and you usually require 'spec/rails' in your spec_helper.rb anyway, you can use :lib => false so rails doesn't require the rspec libs at all.
On 1 Sep., 18:11, Oren Golan <orengo...@gmail.com> wrote: > thank you, it works! > what is the reason for this error? > > On Tue, Sep 1, 2009 at 1:51 AM, Pascal Friederich > <pau...@googlemail.com>wrote: > > > > > > > change the config.gem lines for rspec/rspec-rails in your test.rb > > to: > > > config.gem "rspec", :lib => false > > config.gem "rspec-rails", :lib => false > > > that should solve your problem --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---