Matt Patterson
2009-Mar-18 20:54 UTC
[rspec-users] Cucumber failing with ''uninitialized constant Spec::Ruby''
I''ve just upgraded RSpec to 1.2 on a Rails 2.2.2 app. rake features fails with the following error: /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:442:in `load_missing_constant'': uninitialized constant Spec::Ruby (NameError) from /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:77:in `const_missing'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.0/lib/spec/interop/test.rb:1 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'' from /Library/Ruby/Gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in `require'' from /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:155:in `require'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.0/lib/spec/test/unit.rb:1 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' ... 25 levels... from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/ cli/main.rb:68:in `require_files'' from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/ cli/main.rb:34:in `execute!'' from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/ cli/main.rb:20:in `execute'' from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/cucumber:6 Bummer. I''ve tried with Cucumber 0.1.16 and 0.2, has anyone else seen this? I''ll start poking later, but if anyone''s seen it and has a super-easy diagnosis/fix that would be awesome. Matt -- Matt Patterson | Design & Code <matt at reprocessed org> | http://www.reprocessed.org/
David Chelimsky
2009-Mar-18 21:07 UTC
[rspec-users] Cucumber failing with ''uninitialized constant Spec::Ruby''
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: > > /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:442:in > `load_missing_constant'': uninitialized constant Spec::Ruby (NameError) > ? ? ? ?from > /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in > `const_missing'' > ? ? ? ?from > /Library/Ruby/Gems/1.8/gems/rspec-1.2.0/lib/spec/interop/test.rb:1 > ? ? ? ?from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > ? ? ? ?from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in > `polyglot_original_require'' > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in > `require'' > ? ? ? ?from > /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in > `require'' > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/rspec-1.2.0/lib/spec/test/unit.rb:1 > ? ? ? ?from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > ? ? ? ? ... 25 levels... > ? ? ? ?from > /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/cli/main.rb:68:in > `require_files'' > ? ? ? ?from > /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/cli/main.rb:34:in > `execute!'' > ? ? ? ?from > /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/cli/main.rb:20:in > `execute'' > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/cucumber:6 > > Bummer.Did you run ''ruby script/generate rspec''?> > I''ve tried with Cucumber 0.1.16 and 0.2, has anyone else seen this? I''ll > start poking later, but if anyone''s seen it and has a super-easy > diagnosis/fix that would be awesome. > > Matt > > -- > ?Matt Patterson | Design & Code > ?<matt at reprocessed org> | http://www.reprocessed.org/ > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Matt Patterson
2009-Mar-18 23:17 UTC
[rspec-users] Cucumber failing with ''uninitialized constant Spec::Ruby''
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: >> >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ >> dependencies.rb:442:in >> `load_missing_constant'': uninitialized constant Spec::Ruby >> (NameError) >> ... 25 levels... >> from >> /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/cli/ >> main.rb:68:in >> `require_files'' >> from > > 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 rspec-rails/Upgrade.markdown? Matt -- Matt Patterson | Design & Code <matt at reprocessed org> | http://www.reprocessed.org/
Possibly Parallel Threads
- uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE
- Problems running features with Textmate Cucumber bundle
- [Cucumber] Running single feature from command line
- testing controllers using cucumber
- Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps