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

Version Path
workarea-core-3.4.45 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.44 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.43 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.42 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.41 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.40 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.39 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.38 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.37 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.36 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.35 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.34 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.33 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.32 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.31 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.30 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.29 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.28 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.27 test/workers/workarea/status_reporter_test.rb
workarea-core-3.4.26 test/workers/workarea/status_reporter_test.rb