open-pod/test/openpod/utility/format_test.exs

9 lines
238 B
Elixir
Raw Normal View History

2020-06-08 23:37:11 +02:00
defmodule Openpod.Utility.FormatTest do
use ExUnit.Case
2020-06-08 23:37:11 +02:00
alias Openpod.Utility.Format
test "Test placeholder are replaced" do
assert "http://foo/bar" == Format.compile("http://{host}/{path}", host: "foo", path: "bar")
end
end