Skip to content

Commit a054cea

Browse files
javierbertolimyii
authored andcommitted
test(command_spec): use cleaner match string using %r
1 parent 7796064 commit a054cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/default/controls/command_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
# Can't use `%Q` here due to the `\`
1111
describe command(%q{su - postgres -c 'psql -p} + pg_port + %q{ -qtc "\l+ db2"'}) do
12-
its(:stdout) { should match(/db2.*remoteUser.*UTF8.*en_US\.UTF-8.*en_US\.UTF-8.*my_space/) }
12+
its(:stdout) { should match(%r{db2.*remoteUser.*UTF8.*en_US.UTF-8.*en_US.UTF-8.*my_space}) }
1313
end
1414
end

0 commit comments

Comments
 (0)