This project is archived and is in readonly mode.

#5887 new
Ken Collins

Can not run ActiveRecord tests under 1.9.2

Reported by Ken Collins | October 29th, 2010 @ 02:38 PM

The tests for ActiveRecord will not run due to some loading issue under 1.9.2 because it complains about a NameError when loading ActiveSupport. I think this is a general load error and nothing specific with the OrderedHash namespace. If someone could give me some guidance on what might be causing this, I would be happy to investigate and provide a patch. Note, I have confirmed this on all my computers. Initially I thought it was "just me". Here is the stack trace I see.

/Users/kencollins/Repositories/rails/activesupport/lib/active_support/ordered_hash.rb:9:in `<module:ActiveSupport>': uninitialized constant ActiveSupport::OrderedHash (NameError)
from /Users/kencollins/Repositories/rails/activesupport/lib/active_support/ordered_hash.rb:8:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/kencollins/Repositories/rails/activesupport/lib/active_support/core_ext/enumerable.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/kencollins/Repositories/rails/activesupport/lib/active_support/core_ext.rb:8:in `block in <top (required)>'
from /Users/kencollins/Repositories/rails/activesupport/lib/active_support/core_ext.rb:8:in `each'
from /Users/kencollins/Repositories/rails/activesupport/lib/active_support/core_ext.rb:8:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/kencollins/Repositories/rails/activesupport/lib/active_support.rb:56:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/kencollins/Repositories/rails/activerecord/lib/active_record.rb:25:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/kencollins/Repositories/rails/activerecord/test/cases/helper.rb:10:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from test/cases/aaa_create_tables_test.rb:2:in `<top (required)>'
from /Users/kencollins/.rvm/gems/ruby-1.9.2-p0@decisiv/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load'
from /Users/kencollins/.rvm/gems/ruby-1.9.2-p0@decisiv/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `block in <main>'
from /Users/kencollins/.rvm/gems/ruby-1.9.2-p0@decisiv/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'
    from /Users/kencollins/.rvm/gems/ruby-1.9.2-p0@decisiv/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `<main>'
rake aborted!

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages