From 7a5cd00bf8bab81ebb416c37532f09661dd08dc0 Mon Sep 17 00:00:00 2001 From: Diego Lendoiro Date: Mon, 13 Aug 2018 13:00:59 +0200 Subject: [PATCH] strip server string --- spec/docker_runtime/runtime_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/docker_runtime/runtime_spec.rb b/spec/docker_runtime/runtime_spec.rb index f0cbc77..6578e38 100644 --- a/spec/docker_runtime/runtime_spec.rb +++ b/spec/docker_runtime/runtime_spec.rb @@ -120,7 +120,7 @@ describe 'passbolt_api service' do end it 'hides nginx version' do - expect(command("#{curl} | grep 'Server:'").stdout).to match /^Server: nginx$/ + expect(command("#{curl} | grep 'Server:'").stdout.strip).to match(/^Server:\s+nginx$/) end end