1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

refactor: move Postal::BounceMessage to app/models/bounce_message

هذا الالتزام موجود في:
Adam Cooke
2024-02-21 21:06:51 +00:00
الأصل 77faf886b3
التزام 05d2ec4d04
4 ملفات معدلة مع 62 إضافات و64 حذوفات

عرض الملف

@@ -62,7 +62,7 @@ RSpec.describe UnqueueMessageService do
end
it "sends a bounce to the sender" do
expect(Postal::BounceMessage).to receive(:new).with(server, queued_message.message)
expect(BounceMessage).to receive(:new).with(server, queued_message.message)
service.call
end
@@ -449,7 +449,7 @@ RSpec.describe UnqueueMessageService do
end
it "sends a bounce" do
expect(Postal::BounceMessage).to receive(:new).with(server, queued_message.message)
expect(BounceMessage).to receive(:new).with(server, queued_message.message)
service.call
end
@@ -479,7 +479,7 @@ RSpec.describe UnqueueMessageService do
end
it "sends a bounce" do
expect(Postal::BounceMessage).to receive(:new).with(server, queued_message.message)
expect(BounceMessage).to receive(:new).with(server, queued_message.message)
service.call
end
@@ -598,9 +598,9 @@ RSpec.describe UnqueueMessageService do
end
it "does not send a bounce" do
allow(Postal::BounceMessage).to receive(:new)
allow(BounceMessage).to receive(:new)
service.call
expect(Postal::BounceMessage).to_not have_received(:new)
expect(BounceMessage).to_not have_received(:new)
end
end
@@ -616,7 +616,7 @@ RSpec.describe UnqueueMessageService do
end
it "sends a bounce" do
expect(Postal::BounceMessage).to receive(:new).with(server, queued_message.message)
expect(BounceMessage).to receive(:new).with(server, queued_message.message)
service.call
end