From 029bfe098d9b8c0b5cafc49eac33e767f5748cd3 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Wed, 3 Jun 2026 15:43:02 +0100 Subject: [PATCH] fix(specs): stub IPv6 support in address guard IPv6 literal spec The spec relied on the test machine having real IPv6 connectivity, which GitHub Actions runners do not have. --- spec/lib/postal/http/address_guard_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/lib/postal/http/address_guard_spec.rb b/spec/lib/postal/http/address_guard_spec.rb index 662534b..55c6715 100644 --- a/spec/lib/postal/http/address_guard_spec.rb +++ b/spec/lib/postal/http/address_guard_spec.rb @@ -23,6 +23,8 @@ RSpec.describe Postal::HTTP::AddressGuard do context "when given a public IPv6 literal" do let(:host) { "2606:2800:220:1:248:1893:25c8:1946" } + before { allow(described_class).to receive(:ipv6_supported?).and_return(true) } + it "returns the address to connect to" do expect(call).to eq "2606:2800:220:1:248:1893:25c8:1946" end