Ensure no errors when there is no permalink
This commit is contained in:
parent
5681742223
commit
156e093b5c
|
@ -58,5 +58,12 @@ class TestConvertible < JekyllUnitTest
|
||||||
assert_match(/Invalid permalink/, out)
|
assert_match(/Invalid permalink/, out)
|
||||||
assert_match(/#{File.join(@base, name)}/, out)
|
assert_match(/#{File.join(@base, name)}/, out)
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue