Sha256: dfeca5422a930b8f665d808922693f4237b3471c4473866c80c94683bc17873b
Contents?: true
Size: 593 Bytes
Versions: 3
Compression:
Stored size: 593 Bytes
Contents
require "helper" class MailerInstrumentationTest < ActionMailer::TestCase tests PostMailer setup :setup_subscriber teardown :teardown_subscriber def setup_subscriber @subscriber = Nunes::Subscribers::ActionMailer.subscribe(adapter) end def teardown_subscriber ActiveSupport::Notifications.unsubscribe @subscriber if @subscriber end test "deliver" do PostMailer.created.deliver assert_timer "action_mailer.deliver.PostMailer" end test "receive" do PostMailer.receive PostMailer.created assert_timer "action_mailer.receive.PostMailer" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nunes-0.3.1 | test/mailer_instrumentation_test.rb |
nunes-0.3.0 | test/mailer_instrumentation_test.rb |
nunes-0.2.0 | test/mailer_instrumentation_test.rb |