fix tests

This commit is contained in:
scribu 2013-01-20 03:14:11 +02:00
parent 0ad623fb85
commit 2df63e5b9d
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ class TestSite < Test::Unit::TestCase
end
should "read posts" do
@site.read_posts('')
@site.read_posts('', '_posts')
posts = Dir[source_dir('_posts', '*')]
assert_equal posts.size - 1, @site.posts.size
end

View File

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