Add test around /etc/my.cnf Preflight

This commit is contained in:
Mike Skalnik
2012-10-03 15:51:12 -04:00
parent ff74cb94e6
commit 0f5ad6d8fa

View File

@@ -0,0 +1,10 @@
require 'boxen/test'
require 'boxen/preflight/etc_my_cnf'
class BoxenPreflightEtcMyCnfTest < Boxen::Test
def test_file_check
preflight = Boxen::Preflight::EtcMyCnf.new(mock('config'))
File.expects(:file?).with("/etc/my.cnf").returns(false)
assert preflight.ok?
end
end