From 1380836a4bf5a3e8be8eb2ddf74318718f3979d2 Mon Sep 17 00:00:00 2001 From: Brint O'Hearn Date: Thu, 19 May 2016 20:36:07 -0500 Subject: [PATCH] Rubocop fixes for test/test_theme.rb --- .rubocop.yml | 1 - test/test_theme.rb | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 020e4f92..47ad2353 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -83,7 +83,6 @@ AllCops: - test/test_site.rb - test/test_static_file.rb - test/test_tags.rb - - test/test_theme.rb - test/test_utils.rb - bin/**/* - benchmark/**/* diff --git a/test/test_theme.rb b/test/test_theme.rb index 9767946e..a448ce30 100644 --- a/test/test_theme.rb +++ b/test/test_theme.rb @@ -1,14 +1,14 @@ -require 'helper' +require "helper" class TestTheme < JekyllUnitTest def setup - @theme = Theme.new('test-theme') + @theme = Theme.new("test-theme") @expected_root = File.expand_path "./fixtures/test-theme", File.dirname(__FILE__) end context "initializing" do should "normalize the theme name" do - theme = Theme.new(' Test-Theme ') + theme = Theme.new(" Test-Theme ") assert_equal "test-theme", theme.name end @@ -28,7 +28,8 @@ class TestTheme < JekyllUnitTest should "add itself to sass's load path" do @theme.configure_sass - assert Sass.load_paths.include?(@theme.sass_path), "Sass load paths should include the theme sass dir" + message = "Sass load paths should include the theme sass dir" + assert Sass.load_paths.include?(@theme.sass_path), message end end