test(command_spec): fix rubocop violation [skip ci]

* https://gitlab.com/myii/postgres-formula/-/pipelines/249943423
This commit is contained in:
Imran Iqbal 2021-02-01 22:44:39 +00:00
parent 53d1ac5994
commit 73c39aff5e
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819

View file

@ -8,7 +8,7 @@ control 'Postgres command' do
title 'should match desired lines'
# Can't use `%Q` here due to the `\`
describe command("su - postgres -c 'psql -p" + pg_port + %q( -qtc "\l+ db2"')) do
describe command("su - postgres -c 'psql -p#{pg_port} -qtc \"\\l+ db2\"'") do
its(:stdout) do
should match(
/db2.*remoteUser.*UTF8.*en_US.UTF-8.*en_US.UTF-8.*my_space/