Files
boxen/test/boxen_preflight_etc_my_cnf_test.rb
2012-10-03 15:51:12 -04:00

11 lines
286 B
Ruby

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