test(command_spec): use cleaner match string using %r
This commit is contained in:
committed by
Imran Iqbal
parent
77960641dd
commit
a054cea962
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user