strip server string

This commit is contained in:
Diego Lendoiro 2018-08-13 13:00:59 +02:00
parent 7446c5f091
commit 7a5cd00bf8
1 changed files with 1 additions and 1 deletions

View File

@ -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