test: fix ci error (#189)

This commit is contained in:
Gabriel Jablonski 2026-01-16 15:17:03 -03:00 committed by GitHub
parent 8fe6ea54bd
commit 502f7a470f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ describe Whatsapp::IncomingMessageBaileysService do
expect do
described_class.new(inbox: inbox, params: params).perform
end.to raise_error(Whatsapp::IncomingMessageBaileysService::InvalidWebhookVerifyToken)
end.to(raise_error { |error| expect(error.class.name).to eq('Whatsapp::IncomingMessageBaileysService::InvalidWebhookVerifyToken') })
end
end
@ -918,7 +918,7 @@ describe Whatsapp::IncomingMessageBaileysService do
expect do
described_class.new(inbox: inbox, params: params).perform
end.to raise_error(Whatsapp::IncomingMessageBaileysService::MessageNotFoundError)
end.to(raise_error { |error| expect(error.class.name).to eq('Whatsapp::BaileysHandlers::MessagesUpdate::MessageNotFoundError') })
end
end