File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ matrix:
34
34
rvm : 2.4.5
35
35
stage : spec
36
36
-
37
- env : PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
37
+ env : FACTER_GEM_VERSION='~> 3.11.0' PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
38
38
rvm : 2.5.3
39
39
stage : spec
40
40
-
Original file line number Diff line number Diff line change 1
1
# lvm_support: true/nil
2
2
# Whether there is LVM support (based on the presence of the "vgs" command)
3
3
Facter . add ( 'lvm_support' ) do
4
- confine kernel : :linux
4
+ confine do
5
+ Facter . value ( 'kernel' ) == 'Linux'
6
+ end
5
7
6
8
setcode do
7
9
vgdisplay = Facter ::Util ::Resolution . which ( 'vgs' )
Original file line number Diff line number Diff line change 7
7
end
8
8
9
9
context 'when not on Linux' do
10
- it 'is set to not ' do
10
+ it 'is set to nil ' do
11
11
Facter . fact ( :kernel ) . expects ( :value ) . at_least ( 1 ) . returns ( 'SunOs' )
12
12
Facter . value ( :lvm_support ) . should be_nil
13
13
end
You can’t perform that action at this time.
0 commit comments