We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 804c2bb commit fe52278Copy full SHA for fe52278
1 file changed
test/sandbox/test/rendering_test.rb
@@ -964,6 +964,23 @@ def test_with_request_url_with_host
964
end
965
966
967
+ def test_with_request_url_with_https_protocol
968
+ with_request_url "/", protocol: "https" do
969
+ render_inline UrlForComponent.new(only_path: false)
970
+ assert_text "https://www.example.com/?key=value"
971
+ end
972
+
973
+ with_request_url "/products", protocol: "https", host: "secure.example.com" do
974
975
+ assert_text "https://secure.example.com/products?key=value"
976
977
978
+ with_request_url "/products", protocol: "https" do
979
+ assert_equal "https", vc_test_request.scheme
980
+ assert vc_test_request.ssl?
981
982
983
984
def test_components_share_helpers_state
985
PartialHelper::State.reset
986
0 commit comments