This project is archived and is in readonly mode.

#3833 ✓resolved
Jose Ignacio Costa

[PATCH] Missing templates in actionmailer tests

Reported by Jose Ignacio Costa | February 1st, 2010 @ 02:13 PM | in 3.0.2

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'

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>

Attachments

Pages