diff --git a/test/integration/default/controls/command_spec.rb b/test/integration/default/controls/command_spec.rb index 3c3a3b6..26d7917 100644 --- a/test/integration/default/controls/command_spec.rb +++ b/test/integration/default/controls/command_spec.rb @@ -9,6 +9,6 @@ control 'Postgres command' do # Can't use `%Q` here due to the `\` describe command(%q{su - postgres -c 'psql -p} + pg_port + %q{ -qtc "\l+ db2"'}) do - its(:stdout) { should match(/db2.*remoteUser.*UTF8.*en_US\.UTF-8.*en_US\.UTF-8.*my_space/) } + its(:stdout) { should match(%r{db2.*remoteUser.*UTF8.*en_US.UTF-8.*en_US.UTF-8.*my_space}) } end end