From 6db52725288b35bedb6a4442b9f1c2c13e28aae3 Mon Sep 17 00:00:00 2001 From: Brint O'Hearn Date: Fri, 20 May 2016 20:36:49 -0500 Subject: [PATCH] Splitting args onto own lines in test/test_static_file.rb For functions where the character limit was exceeded and line wrapping was needed, this commit just splits each arg into it's own line. --- test/test_static_file.rb | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/test/test_static_file.rb b/test/test_static_file.rb index b705ff05..7019a107 100644 --- a/test/test_static_file.rb +++ b/test/test_static_file.rb @@ -63,16 +63,24 @@ class TestStaticFile < JekyllUnitTest end should "have a destination relative directory with a collection" do - static_file = setup_static_file_with_collection("root", "_foo/dir/subdir", - "file.html", { "output" => true }) + static_file = setup_static_file_with_collection( + "root", + "_foo/dir/subdir", + "file.html", + { "output" => true } + ) assert_equal :foo, static_file.type assert_equal "/foo/dir/subdir/file.html", static_file.url assert_equal "/foo/dir/subdir", static_file.destination_rel_dir end should "use its collection's permalink template for destination relative directory" do - static_file = setup_static_file_with_collection("root", "_foo/dir/subdir", - "file.html", { "output" => true, "permalink" => "/:path/" }) + static_file = setup_static_file_with_collection( + "root", + "_foo/dir/subdir", + "file.html", + { "output" => true, "permalink" => "/:path/" } + ) assert_equal :foo, static_file.type assert_equal "/dir/subdir/file.html", static_file.url assert_equal "/dir/subdir", static_file.destination_rel_dir @@ -89,8 +97,12 @@ class TestStaticFile < JekyllUnitTest "scope" => { "path" => "private" }, "values" => { "published" => false } }] - static_file = setup_static_file_with_defaults("root", "private/dir/subdir", - "file.html", defaults) + static_file = setup_static_file_with_defaults( + "root", + "private/dir/subdir", + "file.html", + defaults + ) assert(!static_file.write?, "static_file.write? should return false when _config.yml sets " \ "`published: false`")