Skip to content

Commit 35501c4

Browse files
committed
fix
1 parent 91465a9 commit 35501c4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

spec/spec_helper_local.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ def param(type, title, param)
4444
param_value(catalogue, type, title, param)
4545
end
4646

47+
def postgresql_version
48+
'9.6'
49+
end
50+
4751
shared_examples 'postgresql_password function' do
4852
it { is_expected.not_to eq(nil) }
4953

spec/unit/defines/server/default_privileges_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

33
require 'spec_helper'
4-
require 'spec_helper_acceptance'
54

65
describe 'postgresql::server::default_privileges', type: :define do
76
let :facts do

spec/unit/defines/server/extension_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
it {
5656
is_expected.to contain_package('postgis')
57-
.with(ensure: 'present', name: 'postgis').that_comes_before('Postgresql_psql[template_postgis: CREATE EXTENSION "postgis"]')
57+
.with(ensure: 'installed', name: 'postgis').that_comes_before('Postgresql_psql[template_postgis: CREATE EXTENSION "postgis"]')
5858
}
5959
end
6060

@@ -86,7 +86,7 @@
8686

8787
it {
8888
is_expected.to contain_package('postgis')
89-
.with(ensure: 'present', name: 'postgis').that_requires('Postgresql_psql[template_postgis: DROP EXTENSION "postgis"]')
89+
.with(ensure: 'installed', name: 'postgis').that_requires('Postgresql_psql[template_postgis: DROP EXTENSION "postgis"]')
9090
}
9191
end
9292
end

0 commit comments

Comments
 (0)