[rspec-users] Rspec problem in testing RoR application

Anton Komarov lists at ruby-forum.com
Fri Jan 18 04:57:55 EST 2008


Hello.
I install gems rspec and rspec_on_rails
I have this Error when try to run Rspec tests on my RoR application:
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in
`load_missing_constant': uninitialized constant
ActionView::Helpers::JavaScriptMacrosHelper (NameError)

And I follow recipes wich are placed in
http://rubyforge.org/pipermail/rspec-devel/2007-September/004032.html
But it make another one Error:

/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in
`load_missing_constant': uninitialized constant Spec::VERSION::REV
(NameError)
        from
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in
`const_missing'
        from
/home/anton/tele/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb:13
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
`require'
        from
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in
`new_constants_in'
        from
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
`require'
        from
/home/anton/tele/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails.rb:16
         ... 11 levels...
        from
/var/lib/gems/1.8/gems/rspec-1.1.2/lib/spec/runner/example_group_runner.rb:13:in
`load_files'
        from
/var/lib/gems/1.8/gems/rspec-1.1.2/lib/spec/runner/options.rb:83:in
`run_examples'
        from
/var/lib/gems/1.8/gems/rspec-1.1.2/lib/spec/runner/command_line.rb:19:in
`run'
        from /var/lib/gems/1.8/gems/rspec-1.1.2/bin/spec:4

And I don't now what I must to do.
Please help me:)
Thanks for replies
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list