Rubocop fixes for test/test_theme.rb
This commit is contained in:
parent
013e2f159d
commit
1380836a4b
|
@ -83,7 +83,6 @@ AllCops:
|
||||||
- test/test_site.rb
|
- test/test_site.rb
|
||||||
- test/test_static_file.rb
|
- test/test_static_file.rb
|
||||||
- test/test_tags.rb
|
- test/test_tags.rb
|
||||||
- test/test_theme.rb
|
|
||||||
- test/test_utils.rb
|
- test/test_utils.rb
|
||||||
- bin/**/*
|
- bin/**/*
|
||||||
- benchmark/**/*
|
- benchmark/**/*
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
require 'helper'
|
require "helper"
|
||||||
|
|
||||||
class TestTheme < JekyllUnitTest
|
class TestTheme < JekyllUnitTest
|
||||||
def setup
|
def setup
|
||||||
@theme = Theme.new('test-theme')
|
@theme = Theme.new("test-theme")
|
||||||
@expected_root = File.expand_path "./fixtures/test-theme", File.dirname(__FILE__)
|
@expected_root = File.expand_path "./fixtures/test-theme", File.dirname(__FILE__)
|
||||||
end
|
end
|
||||||
|
|
||||||
context "initializing" do
|
context "initializing" do
|
||||||
should "normalize the theme name" do
|
should "normalize the theme name" do
|
||||||
theme = Theme.new(' Test-Theme ')
|
theme = Theme.new(" Test-Theme ")
|
||||||
assert_equal "test-theme", theme.name
|
assert_equal "test-theme", theme.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -28,7 +28,8 @@ class TestTheme < JekyllUnitTest
|
||||||
|
|
||||||
should "add itself to sass's load path" do
|
should "add itself to sass's load path" do
|
||||||
@theme.configure_sass
|
@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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue