1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-03-04 06:44:06 +00:00

test: add tests for message unqueueing

This adds a comprehensive set of tests for the message unqueueing service.

Additionally, it improves how message databases are used for testing environments.
هذا الالتزام موجود في:
Adam Cooke
2024-02-19 22:27:22 +00:00
ملتزم من قبل Adam Cooke
الأصل 465f4d8247
التزام b4016f6b49
21 ملفات معدلة مع 1658 إضافات و84 حذوفات

عرض الملف

@@ -3,7 +3,7 @@
require "rails_helper"
RSpec.describe WebhookDeliveryService do
let(:server) { GLOBAL_SERVER }
let(:server) { create(:server) }
let(:webhook) { create(:webhook, server: server) }
let(:webhook_request) { create(:webhook_request, :locked, webhook: webhook) }
@@ -16,10 +16,6 @@ RSpec.describe WebhookDeliveryService do
stub_request(:post, webhook.url).to_return(status: response_status, body: response_body)
end
after do
server.message_db.provisioner.clean
end
describe "#call" do
it "sends a request to the webhook's url" do
service.call