mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-29 08:48:01 -05:00
Added a unit test for nil value in permalink template keys
This commit is contained in:
@@ -47,5 +47,13 @@ class TestURL < Test::Unit::TestCase
|
||||
).to_s
|
||||
end
|
||||
|
||||
should "handle nil values for keys in the template" do
|
||||
assert_equal '/foo/bar/', URL.new(
|
||||
:template => "/baz",
|
||||
:permalink => "/:x/:y/:z/",
|
||||
:placeholders => {:x => "foo", :y => "bar", :z => nil}
|
||||
).to_s
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user