diff --git a/test/test_url.rb b/test/test_url.rb index 15f989d8..ea11fb09 100644 --- a/test/test_url.rb +++ b/test/test_url.rb @@ -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