We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Dir
1 parent 26317c3 commit 65b48a3Copy full SHA for 65b48a3
spec/unit/facter/loginctl_linger_users_spec.rb
@@ -10,6 +10,7 @@
10
describe 'loginctl_linger_users' do
11
context 'returns root when nothing is present' do
12
before do
13
+ allow(Dir).to receive(:exist?).with('/home/runner/.facter/facts.d').and_return(false)
14
allow(Dir).to receive(:exist?).with('/var/lib/systemd/linger').and_return(false)
15
end
16
@@ -20,6 +21,7 @@
20
21
22
context 'returns list with root others are present' do
23
24
25
allow(Dir).to receive(:exist?).with('/var/lib/systemd/linger').and_return(true)
26
allow(Dir).to receive(:entries).with('/var/lib/systemd/linger').and_return(%w[. .. abc test])
27
0 commit comments