mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Ensure no errors when there is no permalink
This commit is contained in:
@@ -58,5 +58,12 @@ class TestConvertible < JekyllUnitTest
|
||||
assert_match(/Invalid permalink/, out)
|
||||
assert_match(/#{File.join(@base, name)}/, out)
|
||||
end
|
||||
|
||||
should "parse the front-matter correctly whitout permalink" do
|
||||
out = capture_stderr do
|
||||
@convertible.read_yaml(@base, 'front_matter.erb')
|
||||
end
|
||||
refute_match(/Invalid permalink/, out)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user