Skip to content

Commit febb5c9

Browse files
committed
add test
1 parent 00e07f0 commit febb5c9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/phoenix_html/safe_test.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ defmodule Phoenix.HTML.SafeTest do
6262
assert Safe.to_iodata(datetime) == "2000-01-01T12:13:14+00:30"
6363
end
6464

65+
test "impl for Duration" do
66+
duration = Duration.new!(month: 1)
67+
assert Safe.to_iodata(duration) == "P1M"
68+
end
69+
6570
test "impl for URI" do
6671
uri = %URI{scheme: "http", host: "www.example.org", path: "/foo", query: "secret=<a&b>"}
6772

0 commit comments

Comments
 (0)