mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
tests: Typo fixes.
This commit is contained in:
@@ -356,12 +356,12 @@ class TestUtils < JekyllUnitTest
|
||||
end
|
||||
|
||||
context "The \`Utils.has_yaml_header?\` method" do
|
||||
should "accept files with yaml front matter" do
|
||||
should "accept files with YAML front matter" do
|
||||
file = source_dir("_posts", "2008-10-18-foo-bar.markdown")
|
||||
assert_equal "---\n", File.open(file, "rb") { |f| f.read(4) }
|
||||
assert Utils.has_yaml_header?(file)
|
||||
end
|
||||
should "accept files with extraneous spaces after yaml front matter" do
|
||||
should "accept files with extraneous spaces after YAML front matter" do
|
||||
file = source_dir("_posts", "2015-12-27-extra-spaces.markdown")
|
||||
assert_equal "--- \n", File.open(file, "rb") { |f| f.read(6) }
|
||||
assert Utils.has_yaml_header?(file)
|
||||
|
||||
Reference in New Issue
Block a user