Skip to content

Commit

Permalink
(maint) spec fix nil expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed May 5, 2024
1 parent 4b1da6b commit 296b262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/puppet/provider/mysql_database/mysql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
end

before :each do
allow(Facter.fact(:value)).to receive(:root_home).and_return('/root')
allow(Facter).to receive(:value).with(:root_home).and_return('/root')
allow(Puppet::Util).to receive(:which).with('mysql').and_return('/usr/bin/mysql')
allow(File).to receive(:file?).with('/root/.my.cnf').and_return(true)
allow(provider.class).to receive(:mysql_caller).with('show databases', 'regular').and_return('new_database')
Expand Down

0 comments on commit 296b262

Please sign in to comment.