Updates code styling per PR

This commit is contained in:
Jeff Kolesky 2016-03-17 14:26:13 -07:00
parent f79f9d60a9
commit 4b32bd2b13
2 changed files with 4 additions and 11 deletions

View File

@ -16,11 +16,8 @@ module Jekyll
return document.url if document.relative_path == @relative_path
end
raise ArgumentError.new <<-eos
Could not find document "#{@relative_path}" in tag '#{TagName}'.
Make sure the document exists and the path is correct.
eos
raise ArgumentError, "Could not find document '#{@relative_path}' in tag '#{TagName}'.\n\n" \
"Make sure the document exists and the path is correct."
end
end
end

View File

@ -11,12 +11,8 @@ class TestTags < JekyllUnitTest
def create_post(content, override = {}, converter_class = Jekyll::Converters::Markdown)
site = fixture_site({"highlighter" => "rouge"}.merge(override))
if override['read_posts']
site.posts.docs.concat(PostReader.new(site).read_posts(''))
end
if override['read_collections']
CollectionReader.new(site).read
end
site.posts.docs.concat(PostReader.new(site).read_posts('')) if override['read_posts']
CollectionReader.new(site).read if override['read_collections']
info = { :filters => [Jekyll::Filters], :registers => { :site => site } }
@converter = site.converters.find { |c| c.class == converter_class }