File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
Facter . clear
11
11
end
12
12
13
- it 'should return the correct puppetdb version' do
13
+ it 'returns the correct puppetdb version' do
14
14
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'puppetdb' ) . and_return ( '/usr/bin/puppetdb' )
15
15
allow ( Facter ::Core ::Execution ) . to receive ( :execute ) . with ( 'puppetdb --version' ) . and_return ( "puppetdb version: 7.18.0\n " )
16
16
17
17
expect ( Facter . fact ( :puppetdb_version ) . value ) . to eq ( '7.18.0' )
18
18
end
19
19
20
- it 'should return nil if puppetdb command is not available' do
20
+ it 'returns nil if puppetdb command is not available' do
21
21
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'puppetdb' ) . and_return ( nil )
22
22
23
23
expect ( Facter . fact ( :puppetdb_version ) . value ) . to be_nil
24
24
end
25
25
26
- it 'should return nil if puppetdb version output is nil' do
26
+ it 'returns nil if puppetdb version output is nil' do
27
27
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'puppetdb' ) . and_return ( '/usr/bin/puppetdb' )
28
28
allow ( Facter ::Core ::Execution ) . to receive ( :execute ) . with ( 'puppetdb --version' ) . and_return ( nil )
29
29
You can’t perform that action at this time.
0 commit comments