From 296b262dcad564b6ab6a0c89b58eeaeb3befbc31 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Sat, 4 May 2024 23:51:14 -0500 Subject: [PATCH] (maint) spec fix nil expectation --- spec/unit/puppet/provider/mysql_database/mysql_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/puppet/provider/mysql_database/mysql_spec.rb b/spec/unit/puppet/provider/mysql_database/mysql_spec.rb index fd4c07e7a..25ffcc1ee 100644 --- a/spec/unit/puppet/provider/mysql_database/mysql_spec.rb +++ b/spec/unit/puppet/provider/mysql_database/mysql_spec.rb @@ -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')