Permalink
Browse files

Fix rubocop offenses on master.

  • Loading branch information...
1 parent 3a76ddf commit a7d25ed9631f319fbbb27a3b6ec7a23e25e32046 @parkr parkr committed Jun 29, 2016
Showing with 7 additions and 7 deletions.
  1. +1 −1 exe/jekyll
  2. +1 −1 lib/jekyll/entry_filter.rb
  3. +1 −1 test/test_filters.rb
  4. +1 −1 test/test_kramdown.rb
  5. +3 −3 test/test_page.rb
View
@@ -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"
@@ -2,7 +2,7 @@ module Jekyll
class EntryFilter
attr_reader :site
SPECIAL_LEADING_CHARACTERS = [
- ".", "_", '#', "~"
+ ".", "_", "#", "~"
].freeze
def initialize(site, base_directory = nil)
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit a7d25ed

Please sign in to comment.