We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc9f53d commit c44f858Copy full SHA for c44f858
spec/unit/puppet/provider/mysql_database/mysql_spec.rb
@@ -25,7 +25,7 @@
25
end
26
27
before :each do
28
- allow(Facter.fact(:value)).to receive(:root_home).and_return('/root')
+ allow(Facter).to receive(:value).with(:root_home).and_return('/root')
29
allow(Puppet::Util).to receive(:which).with('mysql').and_return('/usr/bin/mysql')
30
allow(File).to receive(:file?).with('/root/.my.cnf').and_return(true)
31
allow(provider.class).to receive(:mysql_caller).with('show databases', 'regular').and_return('new_database')
0 commit comments