tests: Typo fixes.

This commit is contained in:
XhmikosR
2016-07-18 15:05:06 +03:00
parent 5e74610755
commit dbc0349909
14 changed files with 49 additions and 49 deletions

View File

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