File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 37
37
context 'returns nil when pip not present' do
38
38
it do
39
39
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'pip' ) . and_return ( false )
40
- expect ( Facter . value ( :pip_version ) ) . to eq ( nil )
40
+ expect ( Facter . value ( :pip_version ) ) . to be_nil
41
41
end
42
42
end
43
43
end
54
54
context 'returns nil when pip2 not present' do
55
55
it do
56
56
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'pip2' ) . and_return ( false )
57
- expect ( Facter . value ( :pip2_version ) ) . to eq ( nil )
57
+ expect ( Facter . value ( :pip2_version ) ) . to be_nil
58
58
end
59
59
end
60
60
end
71
71
context 'returns nil when pip3 not present' do
72
72
it do
73
73
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'pip3' ) . and_return ( false )
74
- expect ( Facter . value ( :pip3_version ) ) . to eq ( nil )
74
+ expect ( Facter . value ( :pip3_version ) ) . to be_nil
75
75
end
76
76
end
77
77
end
Original file line number Diff line number Diff line change 31
31
it do
32
32
allow ( Facter ::Util ::Resolution ) . to receive ( :exec ) . and_return ( false )
33
33
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python' ) . and_return ( false )
34
- expect ( Facter . value ( :python_release ) ) . to eq ( nil )
34
+ expect ( Facter . value ( :python_release ) ) . to be_nil
35
35
end
36
36
end
37
37
end
60
60
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python' ) . and_return ( true )
61
61
allow ( Facter ::Util ::Resolution ) . to receive ( :exec ) . with ( 'python -V 2>&1' ) . and_return ( python3_version_output )
62
62
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python2' ) . and_return ( false )
63
- expect ( Facter . value ( :python2_release ) ) . to eq ( nil )
63
+ expect ( Facter . value ( :python2_release ) ) . to be_nil
64
64
end
65
65
end
66
66
67
67
context 'returns nil when `python2` and `python` are absent' do
68
68
it do
69
69
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python' ) . and_return ( false )
70
70
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python2' ) . and_return ( false )
71
- expect ( Facter . value ( :python2_release ) ) . to eq ( nil )
71
+ expect ( Facter . value ( :python2_release ) ) . to be_nil
72
72
end
73
73
end
74
74
end
85
85
context 'returns nil when `python3` not present' do
86
86
it do
87
87
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python3' ) . and_return ( false )
88
- expect ( Facter . value ( :python3_release ) ) . to eq ( nil )
88
+ expect ( Facter . value ( :python3_release ) ) . to be_nil
89
89
end
90
90
end
91
91
end
Original file line number Diff line number Diff line change 30
30
context 'returns nil when `python` not present' do
31
31
it do
32
32
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python' ) . and_return ( false )
33
- expect ( Facter . value ( :python_version ) ) . to eq ( nil )
33
+ expect ( Facter . value ( :python_version ) ) . to be_nil
34
34
end
35
35
end
36
36
end
59
59
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python' ) . and_return ( true )
60
60
allow ( Facter ::Util ::Resolution ) . to receive ( :exec ) . with ( 'python -V 2>&1' ) . and_return ( python3_version_output )
61
61
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python2' ) . and_return ( false )
62
- expect ( Facter . value ( :python2_version ) ) . to eq ( nil )
62
+ expect ( Facter . value ( :python2_version ) ) . to be_nil
63
63
end
64
64
end
65
65
66
66
context 'returns nil when `python2` and `python` are absent' do
67
67
it do
68
68
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python2' ) . and_return ( false )
69
69
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python' ) . and_return ( false )
70
- expect ( Facter . value ( :python2_version ) ) . to eq ( nil )
70
+ expect ( Facter . value ( :python2_version ) ) . to be_nil
71
71
end
72
72
end
73
73
end
84
84
context 'returns nil when `python3` not present' do
85
85
it do
86
86
allow ( Facter ::Util ::Resolution ) . to receive ( :which ) . with ( 'python3' ) . and_return ( false )
87
- expect ( Facter . value ( :python3_version ) ) . to eq ( nil )
87
+ expect ( Facter . value ( :python3_version ) ) . to be_nil
88
88
end
89
89
end
90
90
end
You can’t perform that action at this time.
0 commit comments