From 0b6962cfe976819b577059e8535fde5b3d3c7e58 Mon Sep 17 00:00:00 2001 From: jekyllbot Date: Sat, 23 Jun 2018 16:57:35 -0400 Subject: [PATCH] Use assert_include (#7093) Merge pull request 7093 --- test/test_generated_site.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_generated_site.rb b/test/test_generated_site.rb index 7ce09353..65b82fe8 100644 --- a/test/test_generated_site.rb +++ b/test/test_generated_site.rb @@ -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