diff options
author | Chris McGrath <chris@chrismcg.com> | 2015-01-18 22:34:01 +0000 |
---|---|---|
committer | Chris McGrath <chris@chrismcg.com> | 2015-06-02 10:49:49 +0100 |
commit | f5a131aaeaf0533e5f81461c2ad63474a865c19c (patch) | |
tree | ce336d5a2af93a83b294b7a559fa77a33a488a25 /railties | |
parent | 8a87ebfd8f5f3ca2e7d7c063f8cc98158896e475 (diff) | |
download | rails-f5a131aaeaf0533e5f81461c2ad63474a865c19c.tar.gz rails-f5a131aaeaf0533e5f81461c2ad63474a865c19c.tar.bz2 rails-f5a131aaeaf0533e5f81461c2ad63474a865c19c.zip |
Allow configuration of ActionMailer queue name
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/configuration_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 8f5b2d0d68..cb02e0427b 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -732,6 +732,19 @@ module ApplicationTests assert_equal [::MyMailObserver, ::MyOtherMailObserver], ::Mail.send(:class_variable_get, "@@delivery_notification_observers") end + test "allows setting the queue name for the ActionMailer::DeliveryJob" do + add_to_config <<-RUBY + config.action_mailer.deliver_later_queue_name = 'test_default' + RUBY + + require "#{app_path}/config/environment" + require "mail" + + _ = ActionMailer::Base + + assert_equal 'test_default', ActionMailer::Base.send(:class_variable_get, "@@deliver_later_queue_name") + end + test "valid timezone is setup correctly" do add_to_config <<-RUBY config.root = "#{app_path}" |