Fix rubocop offenses on master.

This commit is contained in:
Parker Moore 2016-06-28 22:08:06 -07:00
parent 3a76ddf7a2
commit a7d25ed963
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
5 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ruby
STDOUT.sync = true
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w( .. lib )))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w(.. lib)))
require "jekyll"
require "mercenary"

View File

@ -2,7 +2,7 @@ module Jekyll
class EntryFilter
attr_reader :site
SPECIAL_LEADING_CHARACTERS = [
".", "_", '#', "~"
".", "_", "#", "~"
].freeze
def initialize(site, base_directory = nil)

View File

@ -22,7 +22,7 @@ class TestFilters < JekyllUnitTest
"destination" => dest_dir,
"timezone" => "UTC"
})
@sample_time = Time.utc(2013, 03, 27, 11, 22, 33)
@sample_time = Time.utc(2013, 3, 27, 11, 22, 33)
@sample_date = Date.parse("2013-03-27")
@time_as_string = "September 11, 2001 12:46:30 -0000"
@time_as_numeric = 1_399_680_607

View File

@ -28,7 +28,7 @@ class TestKramdown < JekyllUnitTest
end
should "run Kramdown" do
assert_equal "<h1>Some Header</h1>", @markdown.convert('# Some Header #').strip
assert_equal "<h1>Some Header</h1>", @markdown.convert("# Some Header #").strip
end
context "when asked to convert smart quotes" do

View File

@ -39,7 +39,7 @@ class TestPage < JekyllUnitTest
end
should "create url with non-alphabetic characters" do
@page = setup_page("+", '%# +.md')
@page = setup_page("+", "%# +.md")
assert_equal "/+/%25%23%20+.html", @page.url
end
@ -268,12 +268,12 @@ class TestPage < JekyllUnitTest
end
should "write even when permalink has '%# +'" do
page = setup_page("+", '%# +.md')
page = setup_page("+", "%# +.md")
do_render(page)
page.write(dest_dir)
assert File.directory?(dest_dir)
assert_exist dest_dir("+", '%# +.html')
assert_exist dest_dir("+", "%# +.html")
end
should "write properly without html extension" do