Sha256: 26cdbbb66bdf721d6a422f9d59588ca64c7061a32a36484ad1b0de14fc0dd7b1

Contents?: true

Size: 439 Bytes

Versions: 29

Compression:

Stored size: 439 Bytes

Contents

require 'test_helper'

class ActionMailerIntegration < IntegrationTest
  def test_logs_mail_received
    instrument "receive"

    assert_gauge_logged "receive.action_mailer"
  end

  def test_logs_mail_delivered
    instrument "deliver"

    assert_gauge_logged "deliver.action_mailer"
  end

  private
  def instrument(event)
    ActiveSupport::Notifications.instrument "#{event}.action_mailer" do |*args|
      # nada
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
harness-0.9.1 test/integration/integrations/action_mailer_test.rb
harness-0.9.0 test/integration/integrations/action_mailer_test.rb
harness-0.8.1 test/integration/integrations/action_mailer_test.rb
harness-0.8.0 test/integration/integrations/action_mailer_test.rb
harness-0.7.0 test/integration/integrations/action_mailer_test.rb
harness-0.6.0 test/integration/integrations/action_mailer_test.rb
harness-0.5.0 test/integration/integrations/action_mailer_test.rb
harness-0.4.0 test/integration/integrations/action_mailer_test.rb
harness-0.3.0 test/integration/integrations/action_mailer_test.rb
harness-0.2.16 test/integration/integrations/action_mailer_test.rb
harness-0.2.15 test/integration/integrations/action_mailer_test.rb
harness-0.2.14 test/integration/integrations/action_mailer_test.rb
harness-0.2.13 test/integration/integrations/action_mailer_test.rb
harness-0.2.12 test/integration/integrations/action_mailer_test.rb
harness-0.2.11 test/integration/integrations/action_mailer_test.rb
harness-0.2.10 test/integration/integrations/action_mailer_test.rb
harness-0.2.9 test/integration/integrations/action_mailer_test.rb
harness-0.2.8 test/integration/integrations/action_mailer_test.rb
harness-0.2.7 test/integration/integrations/action_mailer_test.rb
harness-0.2.6 test/integration/integrations/action_mailer_test.rb