test(command_spec): use cleaner match string using %r

This commit is contained in:
Javier Bértoli 2019-05-14 18:49:59 +01:00 committed by Imran Iqbal
parent 77960641dd
commit a054cea962
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819

View file

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