Adjust expected post count for tests.
This commit is contained in:
parent
805f378586
commit
b1cf3d5dd5
|
@ -162,7 +162,7 @@ class TestSite < Test::Unit::TestCase
|
|||
@site.read_posts('')
|
||||
posts = Dir[source_dir('_posts', '*')]
|
||||
posts.delete_if { |post| File.directory?(post) }
|
||||
assert_equal posts.size - 1, @site.posts.size
|
||||
assert_equal posts.size, @site.posts.size
|
||||
end
|
||||
|
||||
should "deploy payload" do
|
||||
|
@ -173,7 +173,7 @@ class TestSite < Test::Unit::TestCase
|
|||
posts.delete_if { |post| File.directory?(post) }
|
||||
categories = %w(bar baz category foo z_category publish_test win).sort
|
||||
|
||||
assert_equal posts.size, @site.posts.size
|
||||
assert_equal posts.size + 1, @site.posts.size
|
||||
assert_equal categories, @site.categories.keys.sort
|
||||
assert_equal 4, @site.categories['foo'].size
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue