Skip to content

Commit 5daf880

Browse files
committed
(maint) spec fix nil expectation
1 parent c55daa7 commit 5daf880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/puppet/provider/mysql_database/mysql_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
end
2626

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

0 commit comments

Comments
 (0)