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
describe 'mysql_server_id' do
11
11
context "igalic's laptop" do
12
12
before :each do
13
- allow ( Facter . fact ( :macaddress ) ) . to receive ( :value ) . and_return ( '3c:97:0e:69:fb:e1' )
13
+ allow ( Facter ) . to receive ( :value ) . with ( :macaddress ) . and_return ( '3c:97:0e:69:fb:e1' )
14
14
end
15
15
16
16
it do
20
20
21
21
context 'node with lo only' do
22
22
before :each do
23
- allow ( Facter . fact ( :macaddress ) ) . to receive ( :value ) . and_return ( '00:00:00:00:00:00' )
23
+ allow ( Facter ) . to receive ( :value ) . with ( :macaddress ) . and_return ( '00:00:00:00:00:00' )
24
24
end
25
25
26
26
it do
30
30
31
31
context 'test nil case' do
32
32
before :each do
33
- allow ( Facter . fact ( :macaddress ) ) . to receive ( :value ) . and_return ( nil )
33
+ allow ( Facter ) . to receive ( :value ) . with ( :macaddress ) . and_return ( nil )
34
34
end
35
35
36
36
it do
You can’t perform that action at this time.
0 commit comments