Extracted read_posts from site.rb into reader.rb

- Extracted
  - Updated References
  - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
This commit is contained in:
Martin Jorn Rogalla
2015-03-04 20:22:37 +01:00
parent 504c9a34ad
commit a4adeb446b
4 changed files with 17 additions and 17 deletions

View File

@@ -189,7 +189,7 @@ class TestSite < JekyllUnitTest
end
should "read posts" do
@site.read_posts('')
@site.reader.read_posts('')
posts = Dir[source_dir('_posts', '**', '*')]
posts.delete_if { |post| File.directory?(post) && !Post.valid?(post) }
assert_equal posts.size - @num_invalid_posts, @site.posts.size

View File

@@ -13,7 +13,7 @@ class TestTags < JekyllUnitTest
site = Site.new(Jekyll.configuration)
if override['read_posts']
site.read_posts('')
site.reader.read_posts('')
end
info = { :filters => [Jekyll::Filters], :registers => { :site => site } }