Improve handling non-default collection documents rendering and writing (#6795)

Merge pull request 6795
This commit is contained in:
ashmaroli
2018-03-10 07:41:24 +05:30
committed by jekyllbot
parent 7508da11c1
commit f8a66ca76c
5 changed files with 76 additions and 12 deletions

View File

@@ -449,14 +449,16 @@ class TestDocument < JekyllUnitTest
refute_nil @files.find do |doc|
doc.relative_path == "_slides/example-slide-4.html"
end
assert_exist dest_dir("slides/example-slide-4.html")
end
end
context "with output overrides" do
should "be output according its front matter" do
assert_nil(
@files.find { |doc| doc.relative_path == "_slides/non-outputted-slide.html" }
)
assert @files.find do |doc|
doc.relative_path == "_slides/non-outputted-slide.html"
end
refute_exist dest_dir("slides/non-outputted-slide.html")
end
end
end