Skip to content

Commit 804c2bb

Browse files
Copilotjoelhawksley
andcommitted
Add test for protocol parameter combined with host parameter
Co-authored-by: joelhawksley <1940294+joelhawksley@users.noreply.github.com>
1 parent 5cf3b78 commit 804c2bb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/sandbox/test/test_helper_test.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,12 @@ def test_with_request_url_restores_original_protocol
7777
# Verify original protocol is restored
7878
assert_equal original_scheme, vc_test_request.scheme
7979
end
80+
81+
def test_with_request_url_with_protocol_and_host
82+
with_request_url "/products", protocol: "https", host: "secure.example.com" do
83+
render_inline(ProtocolComponent.new)
84+
end
85+
86+
assert_selector(".protocol", text: "Protocol: https, SSL: true")
87+
end
8088
end

0 commit comments

Comments
 (0)