From 1da8f04aaa0900f9f2ddd7f3912ba0005ca3672b Mon Sep 17 00:00:00 2001 From: Meeka Date: Mon, 30 Dec 2013 12:57:23 -0500 Subject: [PATCH] Removes assert_includes to pass Travis --- test/test_excerpt.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/test_excerpt.rb b/test/test_excerpt.rb index d93413f8..5255551c 100644 --- a/test/test_excerpt.rb +++ b/test/test_excerpt.rb @@ -49,7 +49,7 @@ class TestExcerpt < Test::Unit::TestCase context "#id" do should "contain the UID for the post" do - assert_include @excerpt.id, @post.id + assert_equal @excerpt.id, "#{@post.id}/#excerpt" end should "return a string" do assert_same @post.id.class, String @@ -68,11 +68,12 @@ class TestExcerpt < Test::Unit::TestCase end context "#inspect" do - should "contain the excerpt id" do - assert_include @excerpt.inspect, @excerpt.id + should "contain the excerpt id as a shorthand string identifier" do + assert_equal @excerpt.inspect, "" end - should "contain the shorthand String identifier of the post" do - assert_include @excerpt.inspect, @post.slug + + should "return a string" do + assert_same @post.id.class, String end end