From ab5001559e6d33fbab17c1c06a98f56bccdaf153 Mon Sep 17 00:00:00 2001 From: Diego Lendoiro Date: Wed, 8 Aug 2018 11:47:02 +0200 Subject: [PATCH] regex to check nginx does not provide version --- 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 fce90cb..f0cbc77 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).to match /^Server: nginx$/ end end