@@ -72,25 +72,28 @@ defmodule Mix.Tasks.Beacon.GenProxyEndpointTest do
7272 """ )
7373 # add proxy endpoint config
7474 |> assert_has_patch ( "config/config.exs" , """
75- 12 + |config :test, TestWeb.ProxyEndpoint, adapter: Bandit.PhoenixAdapter, live_view: [signing_salt: signing_salt]
76- 13 + |
75+ 10 12 |config :test,
76+ 13 + | TestWeb.ProxyEndpoint,
77+ 14 + | adapter: Bandit.PhoenixAdapter,
78+ 15 + | pubsub_server: Test.PubSub,
79+ 16 + | live_view: [signing_salt: signing_salt]
7780 """ )
7881 # add session options config
7982 |> assert_has_patch ( "config/config.exs" , """
80- 10 14 |config :test,
81- 11 15 | ecto_repos: [Test.Repo],
82- 12 - | generators: [timestamp_type: :utc_datetime]
83- 16 + | generators: [timestamp_type: :utc_datetime],
84- 17 + | session_options: [
85- 18 + | store: :cookie,
86- 19 + | key: "_test_key",
87- 20 + | signing_salt: signing_salt,
88- 21 + | same_site: "Lax"
89- 22 + | ]
83+ 18 + |config :test,
84+ 11 19 | ecto_repos: [Test.Repo],
85+ 12 - | generators: [timestamp_type: :utc_datetime]
86+ 20 + | generators: [timestamp_type: :utc_datetime],
87+ 21 + | session_options: [
88+ 22 + | store: :cookie,
89+ 23 + | key: "_test_key",
90+ 24 + | signing_salt: signing_salt,
91+ 25 + | same_site: "Lax"
92+ 26 + | ]
9093 """ )
9194 # update fallback endpoint signing salt
9295 |> assert_has_patch ( "config/config.exs" , """
93- 33 + | live_view: [signing_salt: signing_salt]
96+ 37 + | live_view: [signing_salt: signing_salt]
9497 """ )
9598 end
9699
0 commit comments