Ben Burkert
2007-Aug-01 05:13 UTC
[rspec-users] PaginationHelper load_missing_constant error
I just ran into this error after updating rails and the rspec_on_rails plugin (both are on edge): /Users/ben/Work/wizzdl/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant'': uninitialized constant ActionView::Helpers::PaginationHelper (NameError) from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing'' from /Users/ben/Work/wizzdl/vendor/plugins/rspec_on_rails/ lib/spec/rails/dsl/behaviour/helper.rb:33 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require'' from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'' from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'' from /Users/ben/Work/wizzdl/vendor/plugins/rspec_on_rails/ lib/spec/rails/dsl/behaviour.rb:8 I''m not sure if the problem is with rails or rspec, or even if there is one, so I''ll wait until someone confirms it before submitting a bug. If you do run into this problem, commenting out line 33 of rspec_on_rails/lib/spec/rails/dsl/behaviour/helper.rb made the error message disappear, but it could have side effects. -Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070801/1df806bb/attachment.html
aslak hellesoy
2007-Aug-01 05:48 UTC
[rspec-users] PaginationHelper load_missing_constant error
This is already in the tracker since a few hours. 2007/8/1, Ben Burkert <ben at benburkert.com>:> I just ran into this error after updating rails and the > rspec_on_rails plugin (both are on edge): > > /Users/ben/Work/wizzdl/vendor/rails/activerecord/lib/../../ > activesupport/lib/active_support/dependencies.rb:263:in > `load_missing_constant'': uninitialized constant > ActionView::Helpers::PaginationHelper (NameError) > from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ > lib/../../activesupport/lib/active_support/dependencies.rb:452:in > `const_missing'' > from /Users/ben/Work/wizzdl/vendor/plugins/rspec_on_rails/ > lib/spec/rails/dsl/behaviour/helper.rb:33 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:27:in `gem_original_require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:27:in `require'' > from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ > lib/../../activesupport/lib/active_support/dependencies.rb:495:in > `require'' > from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ > lib/../../activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in'' > from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ > lib/../../activesupport/lib/active_support/dependencies.rb:495:in > `require'' > from /Users/ben/Work/wizzdl/vendor/plugins/rspec_on_rails/ > lib/spec/rails/dsl/behaviour.rb:8 > > > I''m not sure if the problem is with rails or rspec, or even if there > is one, so I''ll wait until someone confirms it before submitting a bug. > > If you do run into this problem, commenting out line 33 of > rspec_on_rails/lib/spec/rails/dsl/behaviour/helper.rb made the error > message disappear, but it could have side effects. > > -Ben