We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e11ed5b + 5ef64e6 commit ed18548Copy full SHA for ed18548
spec/unit/facter/mysql_server_id_spec.rb
@@ -10,7 +10,7 @@
10
describe 'mysql_server_id' do
11
context "igalic's laptop" do
12
before :each do
13
- allow(Facter.fact(:macaddress)).to receive(:value).and_return('3c:97:0e:69:fb:e1')
+ allow(Facter).to receive(:value).with(:macaddress).and_return('3c:97:0e:69:fb:e1')
14
end
15
16
it do
@@ -20,7 +20,7 @@
20
21
context 'node with lo only' do
22
23
- allow(Facter.fact(:macaddress)).to receive(:value).and_return('00:00:00:00:00:00')
+ allow(Facter).to receive(:value).with(:macaddress).and_return('00:00:00:00:00:00')
24
25
26
@@ -30,7 +30,7 @@
30
31
context 'test nil case' do
32
33
- allow(Facter.fact(:macaddress)).to receive(:value).and_return(nil)
+ allow(Facter).to receive(:value).with(:macaddress).and_return(nil)
34
35
36
0 commit comments