uninitialized constant Test::Unit::TestCase in /usr/lib/ruby/vendor_ruby/active_support/test_case.rb:12

Bug #1319101 reported by Wladimir Mutel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rails (Ubuntu)
New
Undecided
Unassigned
ruby-activesupport-3.2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Please see Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738747 which has already been fixed
I think it is worth to integrate this fix into Ubuntu LTS, as this misbehavior is very unpleasant

Revision history for this message
Wladimir Mutel (mwg) wrote :

Btw, ruby-activesupport-3.2 should be made dependent on ruby-test-unit

Without that package installed, 'rails console' in a newly-created Rails project gives :

/usr/lib/ruby/vendor_ruby/active_support/test_case.rb:12:in `<module:ActiveSupport>': uninitialized constant Test (NameError)

After its installation, the message changes into :

/usr/lib/ruby/vendor_ruby/active_support/test_case.rb:12:in `<module:ActiveSupport>': uninitialized constant Test::Unit::TestCase (NameError)

And as described in Debian bug 738747, adding a line :
require 'test/unit'
in the beginning of the file
/usr/lib/ruby/vendor_ruby/active_support/test_case.rb
eliminates the exception and fixes startup of 'rails console'

So, please, I hope you know what to do.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.