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 1010 describe 'mysql_server_id' do
1111 context "igalic's laptop" do
1212 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' )
1414 end
1515
1616 it do
2020
2121 context 'node with lo only' do
2222 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' )
2424 end
2525
2626 it do
3030
3131 context 'test nil case' do
3232 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 )
3434 end
3535
3636 it do
You can’t perform that action at this time.
0 commit comments