Hi there,

I installed the rspec on rails plugin for a new project today and guess 
what -- it blows up!

All by other rspec on rails projects are working fine.

I updated all gems & still no joy. Any ideas how I can troubleshoot this 
one ?

Here's my setup:

- ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0]
- Rails 1.2.5

Installed with svn:
ruby script/plugin install 
svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec

ruby script/plugin install 
svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails

ruby script/generate rspec

[Created a model]

Here's the error:

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:404:in
 
`to_constant_name': Anonymous modules have no name to be referenced by 
(ArgumentError)
         from 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:214:in
 
`qualified_name_for'
         from 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:476:in
 
`const_missing'
         from 
/Users/kmcd/work/banknote/vendor/plugins/rspec/lib/spec/example/example_group_factory.rb:7:in
 
`reset'
         from 
/Users/kmcd/work/banknote/vendor/plugins/rspec/lib/spec/example/example_group_factory.rb:59
         from 
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
         from 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in
 
`require'
         from 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in
 
`new_constants_in'
         from 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in
 
`require'
          ... 47 levels...
         from 
/usr/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/behaviour_runner.rb:19:in
 
`run'
         from 
/usr/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/command_line.rb:17:in
 
`run'
         from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/bin/spec:3
         from /usr/local/bin/spec:16

Regards,

Keith
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to