Use assert_include (#7093)

Merge pull request 7093
This commit is contained in:
jekyllbot 2018-06-23 16:57:35 -04:00 committed by GitHub
parent 3204445d6f
commit 0b6962cfe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -20,15 +20,15 @@ class TestGeneratedSite < JekyllUnitTest
end
should "insert site.posts into the index" do
assert @index.include?("#{@site.posts.size} Posts")
assert_includes @index, "#{@site.posts.size} Posts"
end
should "insert variable from layout into the index" do
assert @index.include?("variable from layout")
assert_includes @index, "variable from layout"
end
should "render latest post's content" do
assert @index.include?(@site.posts.last.content)
assert_includes @index, @site.posts.last.content
end
should "hide unpublished posts" do