Add test to inspect strings

This commit is contained in:
Pat Hawks 2016-03-21 15:45:29 -07:00
parent b06af5a44f
commit aeecbd741f
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
1 changed files with 4 additions and 0 deletions

View File

@ -394,6 +394,10 @@ class TestFilters < JekyllUnitTest
should "return a HTML-escaped string representation of an object" do should "return a HTML-escaped string representation of an object" do
assert_equal "{&quot;&lt;a&gt;&quot;=&gt;1}", @filter.inspect({ "<a>" => 1 }) assert_equal "{&quot;&lt;a&gt;&quot;=&gt;1}", @filter.inspect({ "<a>" => 1 })
end end
should "quote strings" do
assert_equal "&quot;string&quot;", @filter.inspect("string")
end
end end
context "slugify filter" do context "slugify filter" do