Sha256: 3f9ed7a5c708ff8b7d5a09d921df2e1dbb3564768a75308c2cdcee31f8adafe3

Contents?: true

Size: 734 Bytes

Versions: 26

Compression:

Stored size: 734 Bytes

Contents

require 'test_helper'

module Workarea
  class ApplicationMailerTest < IntegrationTest
    def test_from_address_changes
      order = create_placed_order

      Workarea.with_config do |config|
        original_email = 'noregerts@example.com'
        config.email_from = original_email
        control_mail = Storefront::OrderMailer.confirmation(order.id).deliver_now

        assert_equal([original_email], control_mail.from)
      end

      Workarea.with_config do |config|
        changed_email = 'changed@example.com'
        config.email_from = changed_email
        changed_mail = Storefront::OrderMailer.confirmation(order.id).deliver_now

        assert_equal([changed_email], changed_mail.from)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
workarea-core-3.4.37 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.36 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.35 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.34 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.33 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.32 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.31 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.30 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.29 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.28 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.27 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.26 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.25 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.24 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.23 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.22 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.21 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.20 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.19 test/mailers/workarea/application_mailer_test.rb
workarea-core-3.4.18 test/mailers/workarea/application_mailer_test.rb