Skip to content

Commit

Permalink
fix Mix.Config warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhanks committed Jan 1, 2024
1 parent bec340b commit 34d2e1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
import Config

config :bypass, test_framework: :ex_unit

Expand Down
4 changes: 2 additions & 2 deletions test/bypass_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ defmodule BypassTest do
end

test "Bypass.verify_expectations! - with ESpec it will check if the expectations are being met" do
Mix.Config.persist(bypass: [test_framework: :espec])
Application.put_all_env(bypass: [test_framework: :espec])

# Fail: no requests
bypass = prepare_stubs()
Expand Down Expand Up @@ -579,7 +579,7 @@ defmodule BypassTest do
Bypass.verify_expectations!(bypass)
end

Mix.Config.persist(bypass: [test_framework: :ex_unit])
Application.put_all_env(bypass: [test_framework: :ex_unit])
end

test "Bypass.open/1 raises when cannot start child" do
Expand Down

0 comments on commit 34d2e1b

Please sign in to comment.