Functional test failure and errors in application mode

When in application mode and running the functional tests, I’m getting
a failure and some errors. It seems the tests are having problems
instantiating the BasicExtensionController. I’ve attached a log of
the output from running `rake test:functionals’.

Anybody else seeing this?

The attachment didn’t make it through. Can you resend in the message
body?

-Andrew

/usr/bin/ruby1.8 -Ilib:test
“/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb”
(in /home/mdi/Work/manicdev)
/usr/bin/ruby1.8
-Ilib:/home/mdi/Work/manicdev/config/…/vendor/radiant/test
“/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/extension_initialization_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/application_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/site_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/login_system_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/admin/welcome_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/admin/extension_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/admin/page_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/admin/layout_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/admin/user_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/admin/export_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/admin/snippet_controller_test.rb”
“/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/admin/abstract_model_controller_test.rb”
Loaded suite
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader
Started
…FE.EE…
Finished in 16.219527 seconds.

  1. Failure:
    test_load_paths(ExtensionInitializationTest)
    [/home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/extension_initialization_test.rb:17]:
    Exception raised:
    Class:
    Message: <“You have a nil object when you didn’t expect it!\nYou might
    have expected an instance of Array.\nThe error occurred while
    evaluating nil.empty?”>
    —Backtrace—
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:376:in
    new_constants_in' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:202:inload_file’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:94:in
    require_or_load' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:248:inload_missing_constant’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:452:in
    const_missing' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:inconst_missing_before_generators’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/railties/lib/rails_generator/lookup.rb:13:in
    const_missing' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:470:insend’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:470:in
    const_missing_before_generators' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/railties/lib/rails_generator/lookup.rb:13:inconst_missing’
    /home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/extension_initialization_test.rb:17:in
    test_load_paths' /home/mdi/Work/manicdev/config/../vendor/radiant/test/functional/extension_initialization_test.rb:17:intest_load_paths’

  1. Error:
    test_mailer_view_paths(ExtensionInitializationTest):
    NoMethodError: You have a nil object when you didn’t expect it!
    You might have expected an instance of Array.
    The error occurred while evaluating nil.empty?
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:376:in
    new_constants_in' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:202:inload_file’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:94:in
    require_or_load' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:248:inload_missing_constant’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:452:in
    const_missing' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:inconst_missing_before_generators’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/railties/lib/rails_generator/lookup.rb:13:in
    const_missing' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:470:insend’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:470:in
    const_missing_before_generators' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/railties/lib/rails_generator/lookup.rb:13:inconst_missing’
    /home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/extension_initialization_test.rb:55:in
    `test_mailer_view_paths’

  2. Error:
    test_reloading(ExtensionInitializationTest):
    NoMethodError: You have a nil object when you didn’t expect it!
    You might have expected an instance of Array.
    The error occurred while evaluating nil.empty?
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:376:in
    new_constants_in' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:202:inload_file’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:94:in
    require_or_load' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:248:inload_missing_constant’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:452:in
    const_missing' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:inconst_missing_before_generators’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/railties/lib/rails_generator/lookup.rb:13:in
    const_missing' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:470:insend’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:470:in
    const_missing_before_generators' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/railties/lib/rails_generator/lookup.rb:13:inconst_missing’
    /home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/extension_initialization_test.rb:85:in
    assert_view_paths' /home/mdi/Work/manicdev/config/../vendor/radiant/test/functional/extension_initialization_test.rb:23:intest_reloading’

  3. Error:
    test_view_paths(ExtensionInitializationTest):
    NoMethodError: You have a nil object when you didn’t expect it!
    You might have expected an instance of Array.
    The error occurred while evaluating nil.empty?
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:376:in
    new_constants_in' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:202:inload_file’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:94:in
    require_or_load' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:248:inload_missing_constant’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:452:in
    const_missing' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:inconst_missing_before_generators’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/railties/lib/rails_generator/lookup.rb:13:in
    const_missing' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:470:insend’
    /home/mdi/Work/manicdev/config/…/config/…/vendor/radiant/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:470:in
    const_missing_before_generators' /home/mdi/Work/manicdev/config/../config/../vendor/radiant/vendor/rails/railties/lib/rails_generator/lookup.rb:13:inconst_missing’
    /home/mdi/Work/manicdev/config/…/vendor/radiant/test/functional/extension_initialization_test.rb:85:in
    assert_view_paths' /home/mdi/Work/manicdev/config/../vendor/radiant/test/functional/extension_initialization_test.rb:51:intest_view_paths’

116 tests, 490 assertions, 1 failures, 3 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8
-Ilib:/home/mdi/Work/mani…]

(See full trace by running task with --trace)