Skip to content

Commit

Permalink
Merge pull request #1646 from DRI-Syloe/fix_mysql_server_id_tu
Browse files Browse the repository at this point in the history
Fix spec unit for mysql_server_id
  • Loading branch information
Ramesh7 authored Oct 1, 2024
2 parents e11ed5b + 5ef64e6 commit ed18548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/facter/mysql_server_id_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
describe 'mysql_server_id' do
context "igalic's laptop" do
before :each do
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')
end

it do
Expand All @@ -20,7 +20,7 @@

context 'node with lo only' do
before :each do
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')
end

it do
Expand All @@ -30,7 +30,7 @@

context 'test nil case' do
before :each do
allow(Facter.fact(:macaddress)).to receive(:value).and_return(nil)
allow(Facter).to receive(:value).with(:macaddress).and_return(nil)
end

it do
Expand Down

0 comments on commit ed18548

Please sign in to comment.