mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
17 lines
No EOL
439 B
Ruby
17 lines
No EOL
439 B
Ruby
require 'test_helper'
|
|
|
|
class ApplicationMailerTest < ActiveSupport::TestCase
|
|
def test_reads_default_from_setting_from_config
|
|
assert_equal 'no-reply@registry.test', ENV['action_mailer_default_from']
|
|
|
|
mailer = Class.new(ApplicationMailer) do
|
|
def test
|
|
# Empty block to avoid template rendering
|
|
mail {}
|
|
end
|
|
end
|
|
email = mailer.test
|
|
|
|
assert_equal ['no-reply@registry.test'], email.from
|
|
end
|
|
end |