Sunny Bak
2009-May-12 23:43 UTC
[rspec-users] uninitialized constant Spec::VERSION::REV (NameError)
I am a newbie for rspec. I am trying to install and run a "test" test, but i get an error. .../lib/active_support/dependencies.rb:440:in `load_missing_constant'': uninitialized constant Spec::VERSION::REV (NameError) Can someone help me? Thanks. -- Posted via http://www.ruby-forum.com/.
David Chelimsky
2009-May-12 23:46 UTC
[rspec-users] uninitialized constant Spec::VERSION::REV (NameError)
On Tue, May 12, 2009 at 6:43 PM, Sunny Bak <lists at ruby-forum.com> wrote:> I am a newbie for rspec. > I am trying to install and run a "test" test, but i get an error. > > .../lib/active_support/dependencies.rb:440:in `load_missing_constant'': > uninitialized constant Spec::VERSION::REV (NameError) > > Can someone help me?Spec::VERSION::REV does not exist anywhere in rspec, so this is coming from something other than rspec. What versions of rails, rspec and ruby are you using? What other plugins and/or libraries?> Thanks. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Sunny Bak
2009-May-13 01:30 UTC
[rspec-users] uninitialized constant Spec::VERSION::REV (NameError)
David Chelimsky wrote:> On Tue, May 12, 2009 at 6:43 PM, Sunny Bak <lists at ruby-forum.com> wrote: >> I am a newbie for rspec. >> I am trying to install and run a "test" test, but i get an error. >> >> .../lib/active_support/dependencies.rb:440:in `load_missing_constant'': >> uninitialized constant Spec::VERSION::REV (NameError) >> >> Can someone help me? > > Spec::VERSION::REV does not exist anywhere in rspec, so this is coming > from something other than rspec. What versions of rails, rspec and > ruby are you using? What other plugins and/or libraries?Thank you David, I''ve attached the whole error messages. The versions are : ruby-oci8 (1.0.4) rspec-rails (1.2.6) rspec (1.2.6) rake (0.8.4) ruby (1.8.7) Thank you for your help! /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant'': uninitialized constant Spec::VERSION::REV (NameError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing'' from /home/ror/newdarts/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb:13 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in `require'' from /home/ror/newdarts/vendor/plugins/rspec_on_rails/lib/spec/rails.rb:11 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in `require'' from ./spec/models/../spec_helper.rb:6 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' from ./spec/models/user_spec.rb:1 from /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:15:in `load'' from /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:15:in `load_files'' from /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:14:in `each'' from /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:14:in `load_files'' from /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/options.rb:99:in `run_examples'' from /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/command_line.rb:9:in `run'' from /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/bin/spec:4 from /usr/local/bin/spec:19:in `load'' from /usr/local/bin/spec:19 -- Posted via http://www.ruby-forum.com/.
David Chelimsky
2009-May-13 02:27 UTC
[rspec-users] uninitialized constant Spec::VERSION::REV (NameError)
On Tue, May 12, 2009 at 8:30 PM, Sunny Bak <lists at ruby-forum.com> wrote:> David Chelimsky wrote: >> On Tue, May 12, 2009 at 6:43 PM, Sunny Bak <lists at ruby-forum.com> wrote: >>> I am a newbie for rspec. >>> I am trying to install and run a "test" test, but i get an error. >>> >>> .../lib/active_support/dependencies.rb:440:in `load_missing_constant'': >>> uninitialized constant Spec::VERSION::REV (NameError) >>> >>> Can someone help me? >> >> Spec::VERSION::REV does not exist anywhere in rspec, so this is coming >> from something other than rspec. What versions of rails, rspec and >> ruby are you using? What other plugins and/or libraries? > > Thank you David, > > I''ve attached the whole error messages. ?The versions are : > ruby-oci8 (1.0.4) > rspec-rails (1.2.6) > rspec (1.2.6) > rake (0.8.4) > ruby (1.8.7) > Thank you for your help! > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in > `load_missing_constant'': uninitialized constant Spec::VERSION::REV > (NameError) > ? ? ? ?from > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in > `const_missing'' > ? ? ? ?from > /home/ror/newdarts/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb:13I think this is the culprit. Looks like you have a VERY old version of rspec-rails (when it was called rspec_on_rails). Are you trying to use rspec[-rails] as plugins or gems? If gems, system or bundled? David> ? ? ? ?from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > ? ? ? ?from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > ? ? ? ?from > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in > `require'' > ? ? ? ?from > /home/ror/newdarts/vendor/plugins/rspec_on_rails/lib/spec/rails.rb:11 > ? ? ? ?from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > ? ? ? ?from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > ? ? ? ?from > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in > `require'' > ? ? ? ?from ./spec/models/../spec_helper.rb:6 > ? ? ? ?from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > ? ? ? ?from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > ? ? ? ?from ./spec/models/user_spec.rb:1 > ? ? ? ?from > /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:15:in > `load'' > ? ? ? ?from > /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:15:in > `load_files'' > ? ? ? ?from > /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:14:in > `each'' > ? ? ? ?from > /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:14:in > `load_files'' > ? ? ? ?from > /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/options.rb:99:in > `run_examples'' > ? ? ? ?from > /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/lib/spec/runner/command_line.rb:9:in > `run'' > ? ? ? ?from /home/sbak/.gem/ruby/1.8/gems/rspec-1.2.6/bin/spec:4 > ? ? ? ?from /usr/local/bin/spec:19:in `load'' > ? ? ? ?from /usr/local/bin/spec:19 > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >