Current section

Files

Jump to
exq test config_test.exs
Raw

test/config_test.exs

Code.require_file "test_helper.exs", __DIR__
defmodule Exq.ConfigTest do
use ExUnit.Case
require Mix.Config
setup_all do
ExqTestUtil.reset_config
end
test "Mix.Config should change the host." do
assert Exq.Support.Config.get(:host) == "127.0.0.1"
Mix.Config.persist([exq: [host: "127.1.1.1"]])
assert Exq.Support.Config.get(:host) == "127.1.1.1"
end
end