From 73c39aff5ef9bf5808a251f70504e3b019087f01 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Mon, 1 Feb 2021 22:44:39 +0000 Subject: [PATCH] test(command_spec): fix `rubocop` violation [skip ci] * https://gitlab.com/myii/postgres-formula/-/pipelines/249943423 --- test/integration/default/controls/command_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/default/controls/command_spec.rb b/test/integration/default/controls/command_spec.rb index 30046fd..e5ac8f9 100644 --- a/test/integration/default/controls/command_spec.rb +++ b/test/integration/default/controls/command_spec.rb @@ -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/