Skip to content

Commit cc87787

Browse files
author
carabasdaniel
authored
Merge pull request #1259 from smortex/fix-test-suite-when-mysqld-is-not-installed
Fix test suite when mysqld is not installed
2 parents 7d6abb2 + 9b67247 commit cc87787

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: spec/unit/facter/mysqld_version_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
describe 'mysqld_version' do
99
context 'with value' do
1010
before :each do
11+
Facter::Core::Execution.stubs(:which).with('mysqld').returns('/usr/sbin/mysqld')
1112
Facter::Util::Resolution.stubs(:exec).with('mysqld --no-defaults -V 2>/dev/null').returns('mysqld Ver 5.5.49-37.9 for Linux on x86_64 (Percona Server (GPL), Release 37.9, Revision efa0073)')
1213
end
1314
it {

0 commit comments

Comments
 (0)