Skip to content

Commit

Permalink
Moved config to test
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed May 7, 2024
1 parent d958044 commit 09bce1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 0 additions & 9 deletions config/deps/phoenix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,3 @@ else
# and calculating stacktraces is usually expensive.
config :phoenix, :stacktrace_depth, 20
end

if config_env() == :test do
# Let test requests get routed through the :secure pipeline
config :dotcom, :secure_pipeline,
force_ssl: [
host: nil,
rewrite_on: [:x_forwarded_proto]
]
end
7 changes: 7 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ config :dotcom, :redix_pub_sub, Dotcom.Redix.PubSub.Mock
config :dotcom, :req_module, Req.Mock

config :dotcom, :trip_plan_feedback_cache, Dotcom.Cache.TestCache

# Let test requests get routed through the :secure pipeline
config :dotcom, :secure_pipeline,
force_ssl: [
host: nil,
rewrite_on: [:x_forwarded_proto]
]

0 comments on commit 09bce1c

Please sign in to comment.