Skip to content

Commit 87628c4

Browse files
committed
Remove use of spec_helper_acceptance in unit tests
In c96b073 the acceptance helper was included in the unit tests. This should never happen and breaks the tests. It appears it was included to have a postgresql_version but that should be defined in let blocks. The acceptance helper only works if there is an actual target machine. Fixes: c96b073
1 parent c8303fd commit 87628c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/unit/defines/server/default_privileges_spec.rb

Lines changed: 2 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
@@ -16,6 +15,7 @@
1615
path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
1716
}
1817
end
18+
let(:postgresql_version) { '9.6' }
1919

2020
let :title do
2121
'test'
@@ -34,6 +34,7 @@
3434
path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
3535
}
3636
end
37+
let(:postgresql_version) { '9.4' }
3738

3839
let :params do
3940
{

0 commit comments

Comments
 (0)