Skip to content

Commit 9318d85

Browse files
committed
test: add ActionMailer callbacks idempotency test to bump coverage
1 parent 67928fe commit 9318d85

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# typed: true
2+
# frozen_string_literal: true
3+
4+
require "test_helper"
5+
6+
class ActionMailerCallbacksIdempotentTest < ActiveSupport::TestCase
7+
test "patch_message_delivery is idempotent" do
8+
assert LogStruct::Integrations::ActionMailer::Callbacks.patch_message_delivery
9+
# Calling again should be a no-op and still return true
10+
assert LogStruct::Integrations::ActionMailer::Callbacks.patch_message_delivery
11+
end
12+
end

0 commit comments

Comments
 (0)