Skip to content

Commit 1528d2c

Browse files
ojongeriuschris-rock
authored andcommitted
allows patch levels (ie 9.5.14) (#26)
* allows patch levels (ie 9.5.14) See http://rubular.com/r/2aiU6kIEG6 * make patch level optional * only test major and minor versions
1 parent 1040ac9 commit 1528d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controls/postgres_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
title 'Use stable postgresql version'
116116
desc 'Use only community or commercially supported version of the PostgreSQL software. Do not use RC, DEVEL oder BETA versions in a production environment.'
117117
describe command('psql -V') do
118-
its('stdout') { should match(/\b9\.[3-6]$|\b10\.5$/) }
118+
its('stdout') { should match(/^psql\s\(PostgreSQL\)\s(9\.[3-6]|10\.5).*/) }
119119
end
120120
describe command('psql -V') do
121121
its('stdout') { should_not match(/RC/) }

0 commit comments

Comments
 (0)