Anton Komarov
2008-Jan-18 09:57 UTC
[rspec-users] Rspec problem in testing RoR application
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/.
David Chelimsky
2008-Jan-18 10:09 UTC
[rspec-users] Rspec problem in testing RoR application
On Jan 18, 2008 3:57 AM, Anton Komarov <lists at ruby-forum.com> wrote:> Hello. > I install gems rspec and rspec_on_railsFor rails, don''t use the gem. Install both as plugins: http://rspec.info/documentation/rails/install.html> 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/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >