Ensure no errors when there is no permalink

This commit is contained in:
Pedro Euko 2016-01-15 14:34:39 -02:00
parent 5681742223
commit 156e093b5c
1 changed files with 7 additions and 0 deletions

View File

@ -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