Rubocop fixes for test/test_theme.rb

This commit is contained in:
Brint O'Hearn 2016-05-19 20:36:07 -05:00
parent 013e2f159d
commit 1380836a4b
2 changed files with 5 additions and 5 deletions

View File

@ -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/**/*

View File

@ -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