Shortening messages to keep things down to one line where possible
This commit is contained in:
parent
6ef54393c2
commit
bc16d13d79
|
@ -37,8 +37,7 @@ class TestCleaner < JekyllUnitTest
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "not-nested directory in keep_files and similary named directory not "\
|
context "non-nested directory & similarly-named directory *not* in keep_files" do
|
||||||
"in keep_files" do
|
|
||||||
setup do
|
setup do
|
||||||
clear_dest
|
clear_dest
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,7 @@ JS
|
||||||
end
|
end
|
||||||
|
|
||||||
should "write a JS file in place" do
|
should "write a JS file in place" do
|
||||||
assert_exist @test_coffeescript_file, "Can't find the converted CoffeeScript file "\
|
assert_exist @test_coffeescript_file
|
||||||
"in the dest_dir."
|
|
||||||
end
|
end
|
||||||
|
|
||||||
should "produce JS" do
|
should "produce JS" do
|
||||||
|
|
|
@ -113,8 +113,7 @@ class TestCollections < JekyllUnitTest
|
||||||
@collection = @site.collections["methods"]
|
@collection = @site.collections["methods"]
|
||||||
end
|
end
|
||||||
|
|
||||||
should "create a Hash on Site with the label mapped to the instance of the "\
|
should "create a Hash mapping label to Collection instance" do
|
||||||
"Collection" do
|
|
||||||
assert @site.collections.is_a?(Hash)
|
assert @site.collections.is_a?(Hash)
|
||||||
refute_nil @site.collections["methods"]
|
refute_nil @site.collections["methods"]
|
||||||
assert @site.collections["methods"].is_a? Jekyll::Collection
|
assert @site.collections["methods"].is_a? Jekyll::Collection
|
||||||
|
@ -137,8 +136,7 @@ class TestCollections < JekyllUnitTest
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
should "not include files which start with an underscore in the base collection "\
|
should "not include files from base dir which start with an underscore" do
|
||||||
"directory" do
|
|
||||||
refute_includes @collection.filtered_entries, "_do_not_read_me.md"
|
refute_includes @collection.filtered_entries, "_do_not_read_me.md"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -187,8 +185,7 @@ class TestCollections < JekyllUnitTest
|
||||||
refute_includes @collection.filtered_entries, "/um_hi.md"
|
refute_includes @collection.filtered_entries, "/um_hi.md"
|
||||||
end
|
end
|
||||||
|
|
||||||
should "include the symlinked file in the list of docs as it resolves to inside "\
|
should "include the symlinked file from site.source in the list of docs" do
|
||||||
"site.source" do
|
|
||||||
assert_includes @collection.docs.map(&:relative_path), "_methods/um_hi.md"
|
assert_includes @collection.docs.map(&:relative_path), "_methods/um_hi.md"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue