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