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