مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
refactor: refactor DNS resolution
This commit also adds some of tests for the Domain model. It was during the writing of these tests that the DNS resolution refactoring requirement became apparent.
هذا الالتزام موجود في:
@@ -4,7 +4,7 @@ require "rails_helper"
|
||||
|
||||
describe Postal::ReceivedHeader do
|
||||
before do
|
||||
allow(Resolv::DNS).to receive(:open).and_return("hostname.com")
|
||||
allow(DNSResolver.local).to receive(:ip_to_hostname).and_return("hostname.com")
|
||||
end
|
||||
|
||||
describe ".generate" do
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم