adjust tests to new test post
This commit is contained in:
parent
eae3ae8479
commit
17cdd59206
|
@ -14,7 +14,7 @@ class TestGeneratedSite < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
should "ensure post count is as expected" do
|
should "ensure post count is as expected" do
|
||||||
assert_equal 33, @site.posts.size
|
assert_equal 34, @site.posts.size
|
||||||
end
|
end
|
||||||
|
|
||||||
should "insert site.posts into the index" do
|
should "insert site.posts into the index" do
|
||||||
|
|
|
@ -172,7 +172,7 @@ class TestSite < Test::Unit::TestCase
|
||||||
|
|
||||||
posts = Dir[source_dir("**", "_posts", "**", "*")]
|
posts = Dir[source_dir("**", "_posts", "**", "*")]
|
||||||
posts.delete_if { |post| File.directory?(post) && !Post.valid?(post) }
|
posts.delete_if { |post| File.directory?(post) && !Post.valid?(post) }
|
||||||
categories = %w(bar baz category foo z_category publish_test win).sort
|
categories = %w(2013 bar baz category foo z_category publish_test win).sort
|
||||||
|
|
||||||
assert_equal posts.size - @num_invalid_posts, @site.posts.size
|
assert_equal posts.size - @num_invalid_posts, @site.posts.size
|
||||||
assert_equal categories, @site.categories.keys.sort
|
assert_equal categories, @site.categories.keys.sort
|
||||||
|
|
Loading…
Reference in New Issue