Sha256: 3e25499743264c515b7fdee72bbf89145e4b8f21ad1fe40f7e113e81e6675514
Contents?: true
Size: 699 Bytes
Versions: 34
Compression:
Stored size: 699 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 delivery_emails = ActionMailer::Base.deliveries.map(&:bcc).flatten assert(delivery_emails.include?('foo@workarea.com')) assert(delivery_emails.include?('bar@workarea.com')) end end end
Version data entries
34 entries across 34 versions & 1 rubygems