From 98eef8af95c3d1ad8566215cf2a31fa5c8ff7792 Mon Sep 17 00:00:00 2001 From: Brint O'Hearn Date: Mon, 16 May 2016 19:48:04 -0500 Subject: [PATCH] Aligning hashes per 2caff75 --- test/test_commands_serve.rb | 6 +++--- test/test_doctor_command.rb | 4 ++-- test/test_excerpt.rb | 2 +- test/test_front_matter_defaults.rb | 28 ++++++++++++++-------------- test/test_generated_site.rb | 8 ++++---- test/test_layout_reader.rb | 2 +- test/test_rdiscount.rb | 4 ++-- test/test_redcarpet.rb | 2 +- 8 files changed, 28 insertions(+), 28 deletions(-) diff --git a/test/test_commands_serve.rb b/test/test_commands_serve.rb index b02232b9..7ffd0a57 100644 --- a/test/test_commands_serve.rb +++ b/test/test_commands_serve.rb @@ -105,10 +105,10 @@ class TestCommandsServe < JekyllUnitTest allow(File).to receive(:read).and_return("foo") result = custom_opts({ - "ssl_cert" => "foo", - "source" => "bar", + "ssl_cert" => "foo", + "source" => "bar", "enable_ssl" => true, - "ssl_key" => "bar" + "ssl_key" => "bar" }) assert result[:SSLEnable] diff --git a/test/test_doctor_command.rb b/test/test_doctor_command.rb index aa6cf125..7280b287 100644 --- a/test/test_doctor_command.rb +++ b/test/test_doctor_command.rb @@ -9,7 +9,7 @@ class TestDoctorCommand < JekyllUnitTest should "return success on a valid site/page" do @site = Site.new(Jekyll.configuration({ - "source" => File.join(source_dir, "/_urls_differ_by_case_valid"), + "source" => File.join(source_dir, "/_urls_differ_by_case_valid"), "destination" => dest_dir })) @site.process @@ -22,7 +22,7 @@ class TestDoctorCommand < JekyllUnitTest should "return warning for pages only differing by case" do @site = Site.new(Jekyll.configuration({ - "source" => File.join(source_dir, "/_urls_differ_by_case_invalid"), + "source" => File.join(source_dir, "/_urls_differ_by_case_invalid"), "destination" => dest_dir })) @site.process diff --git a/test/test_excerpt.rb b/test/test_excerpt.rb index 8b29f6fd..e91fb7c0 100644 --- a/test/test_excerpt.rb +++ b/test/test_excerpt.rb @@ -3,7 +3,7 @@ require "helper" class TestExcerpt < JekyllUnitTest def setup_post(file) Document.new(@site.in_source_dir(File.join("_posts", file)), { - :site => @site, + :site => @site, :collection => @site.posts }).tap(&:read) end diff --git a/test/test_front_matter_defaults.rb b/test/test_front_matter_defaults.rb index 4be4ce2f..f1b55ac1 100644 --- a/test/test_front_matter_defaults.rb +++ b/test/test_front_matter_defaults.rb @@ -6,8 +6,8 @@ class TestFrontMatterDefaults < JekyllUnitTest @site = Site.new(Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, - "defaults" => [{ - "scope" => { + "defaults" => [{ + "scope" => { "path" => "contacts", "type" => "page" }, @@ -32,8 +32,8 @@ class TestFrontMatterDefaults < JekyllUnitTest @site = Site.new(Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, - "defaults" => [{ - "scope" => { + "defaults" => [{ + "scope" => { "path" => "index.html" }, "values" => { @@ -58,8 +58,8 @@ class TestFrontMatterDefaults < JekyllUnitTest @site = Site.new(Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, - "defaults" => [{ - "scope" => { + "defaults" => [{ + "scope" => { "path" => "win" }, "values" => { @@ -83,8 +83,8 @@ class TestFrontMatterDefaults < JekyllUnitTest @site = Site.new(Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, - "defaults" => [{ - "scope" => { + "defaults" => [{ + "scope" => { "type" => "page" }, "values" => { @@ -109,8 +109,8 @@ class TestFrontMatterDefaults < JekyllUnitTest @site = Site.new(Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, - "defaults" => [{ - "scope" => { + "defaults" => [{ + "scope" => { "type" => "pages" }, "values" => { @@ -135,8 +135,8 @@ class TestFrontMatterDefaults < JekyllUnitTest @site = Site.new(Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, - "defaults" => [{ - "scope" => { + "defaults" => [{ + "scope" => { }, "values" => { "key" => "val" @@ -159,7 +159,7 @@ class TestFrontMatterDefaults < JekyllUnitTest @site = Site.new(Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, - "defaults" => [{ + "defaults" => [{ "values" => { "key" => "val" } @@ -181,7 +181,7 @@ class TestFrontMatterDefaults < JekyllUnitTest @site = Site.new(Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, - "defaults" => [{ + "defaults" => [{ "values" => { "date" => "2015-01-01 00:00:01" } diff --git a/test/test_generated_site.rb b/test/test_generated_site.rb index 46374862..0a24172c 100644 --- a/test/test_generated_site.rb +++ b/test/test_generated_site.rb @@ -4,7 +4,7 @@ class TestGeneratedSite < JekyllUnitTest context "generated sites" do setup do clear_dest - config = Jekyll::Configuration::DEFAULTS.merge({ "source" => source_dir, + config = Jekyll::Configuration::DEFAULTS.merge({ "source" => source_dir, "destination" => dest_dir }) @site = fixture_site(config) @@ -65,7 +65,7 @@ OUTPUT context "generating limited posts" do setup do clear_dest - config = Jekyll::Configuration::DEFAULTS.merge({ "source" => source_dir, + config = Jekyll::Configuration::DEFAULTS.merge({ "source" => source_dir, "destination" => dest_dir, "limit_posts" => 5 }) @site = fixture_site(config) @@ -81,7 +81,7 @@ OUTPUT assert_raises ArgumentError do clear_dest config = Jekyll::Configuration::DEFAULTS.merge({ - "source" => source_dir, + "source" => source_dir, "destination" => dest_dir, "limit_posts" => -1 }) @@ -92,7 +92,7 @@ OUTPUT should "acceptable limit post is 0" do clear_dest config = Jekyll::Configuration::DEFAULTS.merge({ - "source" => source_dir, + "source" => source_dir, "destination" => dest_dir, "limit_posts" => 0 }) diff --git a/test/test_layout_reader.rb b/test/test_layout_reader.rb index dabe29c0..133cd6f2 100644 --- a/test/test_layout_reader.rb +++ b/test/test_layout_reader.rb @@ -3,7 +3,7 @@ require "helper" class TestLayoutReader < JekyllUnitTest context "reading layouts" do setup do - config = Jekyll::Configuration::DEFAULTS.merge({ "source" => source_dir, + config = Jekyll::Configuration::DEFAULTS.merge({ "source" => source_dir, "destination" => dest_dir }) @site = fixture_site(config) end diff --git a/test/test_rdiscount.rb b/test/test_rdiscount.rb index 889f9659..9390aaed 100644 --- a/test/test_rdiscount.rb +++ b/test/test_rdiscount.rb @@ -10,9 +10,9 @@ class TestRdiscount < JekyllUnitTest end config = { - "markdown" => "rdiscount", + "markdown" => "rdiscount", "rdiscount" => { - "toc_token" => "{:toc}", + "toc_token" => "{:toc}", "extensions" => %w(smart generate_toc) } } diff --git a/test/test_redcarpet.rb b/test/test_redcarpet.rb index 7231cff9..140fabbe 100644 --- a/test/test_redcarpet.rb +++ b/test/test_redcarpet.rb @@ -10,7 +10,7 @@ class TestRedcarpet < JekyllUnitTest end @config = { - "markdown" => "redcarpet", + "markdown" => "redcarpet", "redcarpet" => { "extensions" => %w(smart strikethrough filter_html) }