Sha256: 8f4c81b9c56338426cc1e264edb888b9f35898cbcb314b1dc456bea87ce3f6c8
Contents?: true
Size: 751 Bytes
Versions: 22
Compression:
Stored size: 751 Bytes
Contents
require 'test_helper' module Workarea class StatusReporterTest < IntegrationTest def test_sending_to_emails_in_list create_user(email: 'foo@workarea.com', admin: true, status_email_recipient: true) create_user(email: 'bar@workarea.com', admin: true, status_email_recipient: true) # Check that rendering release works create_release(publish_at: Time.current + 1.days) create_release(publish_at: Time.current + 2.days) StatusReporter.new.perform assert(2, ActionMailer::Base.deliveries.count) delivery_emails = ActionMailer::Base.deliveries.map(&:to).flatten assert(delivery_emails.include?('foo@workarea.com')) assert(delivery_emails.include?('bar@workarea.com')) end end end
Version data entries
22 entries across 22 versions & 1 rubygems