This project is archived and is in readonly mode.

#4610 ✓committed
Santiago Pastorino

Added missing require, we are using here the bind method defined on active_support/core_ext/proc

Reported by Santiago Pastorino | May 16th, 2010 @ 03:06 AM | in 3.0.2

......E......................................E......
Finished in 2.201572 seconds.

  1) Error:
test_being_able_to_put_proc's_into_the_defaults_hash_and_they_get_evaluated_on_mail_sending(BaseTest):
NoMethodError: undefined method `bind' for #
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:571:in `mail'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:570:in `merge'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:570:in `mail'
    base_test.rb:123:in `welcome'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/abstract_controller/base.rb:144:in `send_action'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/abstract_controller/base.rb:144:in `process_action'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/abstract_controller/base.rb:113:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/abstract_controller/rendering.rb:39:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/old_api.rb:75:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:416:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:411:in `initialize'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:395:in `new'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:395:in `method_missing'
    base_test.rb:582:in `test_being_able_to_put_proc's_into_the_defaults_hash_and_they_get_evaluated_on_mail_sending'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/callbacks.rb:408:in `_run_setup_callbacks'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:65:in `run'

  2) Error:
test_we_can_call_other_defined_methods_on_the_class_as_needed(BaseTest):
NoMethodError: undefined method `bind' for #
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:571:in `mail'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:570:in `merge'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:570:in `mail'
    base_test.rb:123:in `welcome'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/abstract_controller/base.rb:144:in `send_action'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/abstract_controller/base.rb:144:in `process_action'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/abstract_controller/base.rb:113:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/abstract_controller/rendering.rb:39:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/old_api.rb:75:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:416:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:411:in `initialize'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:395:in `new'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionmailer/lib/action_mailer/base.rb:395:in `method_missing'
    base_test.rb:590:in `test_we_can_call_other_defined_methods_on_the_class_as_needed'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/callbacks.rb:408:in `_run_setup_callbacks'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:65:in `run'

52 tests, 155 assertions, 0 failures, 2 errors

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