Skip to content

Commit

Permalink
test(command_spec): use cleaner match string using %r
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli authored and myii committed May 31, 2019
1 parent 7796064 commit a054cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/default/controls/command_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

# 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

0 comments on commit a054cea

Please sign in to comment.