diff --git a/exe/jekyll b/exe/jekyll index c233dd1a..3bd37e54 100755 --- a/exe/jekyll +++ b/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__), "..", "lib")) require "jekyll" require "mercenary" diff --git a/lib/jekyll/hooks.rb b/lib/jekyll/hooks.rb index c9a4f794..44ce0c12 100644 --- a/lib/jekyll/hooks.rb +++ b/lib/jekyll/hooks.rb @@ -54,7 +54,7 @@ module Jekyll # Ensure the priority is a Fixnum def self.priority_value(priority) - return priority if priority.is_a?(Fixnum) + return priority if priority.is_a?(Integer) PRIORITY_MAP[priority] || DEFAULT_PRIORITY end diff --git a/test/test_related_posts.rb b/test/test_related_posts.rb index cea3ad0b..ef7265ef 100644 --- a/test/test_related_posts.rb +++ b/test/test_related_posts.rb @@ -13,8 +13,8 @@ class TestRelatedPosts < JekyllUnitTest last_post = @site.posts.last related_posts = Jekyll::RelatedPosts.new(last_post).build - last_10_recent_posts = (@site.posts.docs.reverse - [last_post]).first(10) - assert_equal last_10_recent_posts, related_posts + last_ten_recent_posts = (@site.posts.docs.reverse - [last_post]).first(10) + assert_equal last_ten_recent_posts, related_posts end end