mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
rewrite test to only not throw error
This commit is contained in:
@@ -93,13 +93,11 @@ class TestURL < JekyllUnitTest
|
||||
matching_doc = site.collections["methods"].docs.find do |doc|
|
||||
doc.relative_path == "_methods/escape-+ #%20[].md"
|
||||
end
|
||||
out, err = capture_io do
|
||||
URL.new(
|
||||
:template => "/methods/:title/:headline",
|
||||
:placeholders => matching_doc.url_placeholders
|
||||
).to_s
|
||||
end
|
||||
assert out.include? ":headline is not defined!"
|
||||
URL.new(
|
||||
:template => "/methods/:title/:headline",
|
||||
:placeholders => matching_doc.url_placeholders
|
||||
).to_s
|
||||
pass
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user