Sha256: 88d6c0325a9d58110352fb239bb2a761047e70724e8382ec5bc0e37691032655
Contents?: true
Size: 584 Bytes
Versions: 28
Compression:
Stored size: 584 Bytes
Contents
require 'test_helper' module Workarea module Storefront class TransactionalMailerTest < MailerTest def test_enabled_transactional_emails Workarea.config.send_transactional_emails = true order = create_placed_order OrderMailer.confirmation(order.id).deliver_now assert_emails(1) end def test_disabling_transactionl_email Workarea.config.send_transactional_emails = false order = create_placed_order OrderMailer.confirmation(order.id).deliver_now assert_no_emails end end end end
Version data entries
28 entries across 28 versions & 1 rubygems