blob: 93120c8b18d2f2a0ed683e30c7218b8c8b3cc715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
defmodule RecaptchaConfigTest do
use ExUnit.Case, async: true
test "config can read regular config values" do
Application.put_env(:recaptcha, :test_var, "test")
assert Recaptcha.Config.get_env(:recaptcha, :test_var) == "test"
end
test "config can read environment variables" do
System.put_env("TEST_VAR", "test_env_vars")
Application.put_env(:recaptcha, :test_env_var, {:system, "TEST_VAR"})
assert Recaptcha.Config.get_env(:recaptcha, :test_env_var) == "test_env_vars"
end
end
|