Forum: RSpec uninitialized constant Spec::VERSION::REV (NameError)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sunny B. (Guest)
on 2009-05-13 03:43
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.
David C. (Guest)
on 2009-05-13 03:48
(Received via mailing list)
On Tue, May 12, 2009 at 6:43 PM, Sunny B. <removed_email_address@domain.invalid> 
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?
Sunny B. (Guest)
on 2009-05-13 05:30
David C. wrote:
> On Tue, May 12, 2009 at 6:43 PM, Sunny B. <removed_email_address@domain.invalid> 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
David C. (Guest)
on 2009-05-13 06:29
(Received via mailing list)
On Tue, May 12, 2009 at 8:30 PM, Sunny B. <removed_email_address@domain.invalid> 
wrote:
>> Spec::VERSION::REV does not exist anywhere in rspec, so this is coming
> ruby (1.8.7)
> /home/ror/newdarts/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb:13
I 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
This topic is locked and can not be replied to.