Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Missing templates in actionmailer tests

#3833

Running on Ruby 1.8.7 and Rails master.


  1) Error:
test_that_you_can_specify_a_different_template(BaseTest):
ActionView::MissingTemplate: Missing template /explicit_multipart_templates with {:formats=>[:text]} in view path /home/jose/Projects/rails/actionmailer/test/fixtures
    /home/jose/Projects/rails/actionpack/lib/action_view/paths.rb:48:in `find'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/rendering.rb:181:in `find_template'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/rendering.rb:169:in `_determine_template'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/rendering.rb:189:in `with_template_cache'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/localized_cache.rb:45:in `with_template_cache'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/rendering.rb:168:in `_determine_template'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/layouts.rb:361:in `_determine_template'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/rendering.rb:64:in `render_to_body'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/layouts.rb:308:in `render_to_body'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/rendering.rb:49:in `render'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/localized_cache.rb:39:in `render'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/deprecated_api.rb:103:in `render'
    ./test/base_test.rb:84:in `different_template'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/collector.rb:28:in `call'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/collector.rb:28:in `custom'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/collector.rb:8:in `text'
    ./test/base_test.rb:84:in `different_template'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/base.rb:564:in `collect_responses_and_parts_order'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/base.rb:503:in `mail'
    ./test/base_test.rb:83:in `different_template'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/base.rb:145:in `send_action'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/base.rb:145:in `process_action'
    /home/jose/Projects/rails/actionpack/lib/abstract_controller/base.rb:115:in `process'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/old_api.rb:76:in `process'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/base.rb:358:in `initialize'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/base.rb:342:in `new'
    /home/jose/Projects/rails/actionmailer/lib/action_mailer/base.rb:342:in `method_missing'
    ./test/base_test.rb:479:in `test_that_you_can_specify_a_different_template'
    /home/jose/Projects/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:64:in `__send__'
    /home/jose/Projects/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:64:in `run'
    /home/jose/Projects/rails/activesupport/lib/active_support/callbacks.rb:407:in `_run_setup_callbacks'
    /home/jose/Projects/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run'

Reported by Jose Ignacio Costa · February 1st, 2010 @ 02:13 PM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Jose Ignacio Costa
    Jose Ignacio Costa
    • Tag changed from 3.0pre, action_mailer, testcase to 3.0pre, action_mailer, patch, testcase

    February 1st, 2010 @ 04:15 PM

  2. Prem Sichanugrist (sikachu)
    Prem Sichanugrist (sikachu)
    • State changed from new to open
    • Assigned user set to José Valim
    • Milestone cleared.

    +1 I'm seeing this too

    Can somebody verify this patch?

    February 1st, 2010 @ 04:43 PM

  3. José Valim
    José Valim
    • State changed from open to resolved

    February 1st, 2010 @ 10:35 PM

  4. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM