From 851f53194e4fecd7b99436e6cb5922991ea5d147 Mon Sep 17 00:00:00 2001 From: benjamin wil Date: Sun, 22 Aug 2021 17:04:58 -0700 Subject: [PATCH] Fix failing spec My changes to the header layout seem to changed where the spaces in `last_response.body` are placed. So let's assert only that the content is present, since that's all this test should actually care about. --- test/test_app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_app.rb b/test/test_app.rb index 48836f83..0fd44f8b 100644 --- a/test/test_app.rb +++ b/test/test_app.rb @@ -489,9 +489,9 @@ EOF test "previews content" do post "/gollum/preview", :content => 'abc', :format => 'markdown', :page => 'Samewise Gamgee.mediawiki' assert last_response.ok? - assert last_response.body.include?('Samewise Gamgee') + assert last_response.body.include?('Samewise Gamgee') end - + test 'throws an error when comparing two identical revisions for a page' do get '/gollum/compare/A.md/fc66539528eb96f21b2bbdbf557788fe8a1196ac...fc66539528eb96f21b2bbdbf557788fe8a1196ac' assert last_response.ok?