Skip to content

Commit

Permalink
Fix rubocop offenses on master.
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Jun 29, 2016
1 parent 3a76ddf commit a7d25ed
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion exe/jekyll
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll/entry_filter.rb
Expand Up @@ -2,7 +2,7 @@ module Jekyll
class EntryFilter
attr_reader :site
SPECIAL_LEADING_CHARACTERS = [
".", "_", '#', "~"
".", "_", "#", "~"
].freeze

def initialize(site, base_directory = nil)
Expand Down
2 changes: 1 addition & 1 deletion test/test_filters.rb
Expand Up @@ -22,7 +22,7 @@ def initialize(opts = {})
"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
Expand Down
2 changes: 1 addition & 1 deletion test/test_kramdown.rb
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/test_page.rb
Expand Up @@ -39,7 +39,7 @@ def do_render(page)
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

Expand Down Expand Up @@ -268,12 +268,12 @@ def do_render(page)
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
Expand Down

0 comments on commit a7d25ed

Please sign in to comment.