[rspec-users] Cucumber failing with 'uninitialized constant Spec::Ruby'
matt-lists at reprocessed.org
Wed Mar 18 19:17:02 EDT 2009
On 18 Mar 2009, at 21:07, David Chelimsky wrote:
> On Wed, Mar 18, 2009 at 3:54 PM, Matt Patterson
> <matt-lists at reprocessed.org> wrote:
>> I've just upgraded RSpec to 1.2 on a Rails 2.2.2 app.
>> rake features fails with the following error:
>> `load_missing_constant': uninitialized constant Spec::Ruby
>> ... 25 levels...
> Did you run 'ruby script/generate rspec'?
Yes, both ./script/generate rspec and ./script/generate cucumber
I just went back and checked on my environments/test.rb. With the line:
config.gem "rspec-rails", :lib =>'spec/rails'
Cucumber blows up. I switched to use the new suggestion from http://wiki.github.com/dchelimsky/rspec/configgem-for-rails
config.gem "rspec", :lib => false, :version => ">= 1.2.0"
config.gem "rspec-rails", :lib => false, :version => ">= 1.2.0"
And it runs! Phew. Maybe put that, or a link to the wiki page, into
Matt Patterson | Design & Code
<matt at reprocessed org> | http://www.reprocessed.org/
More information about the rspec-users