mirror of
https://github.com/zhigang1992/boxen.git
synced 2026-01-12 08:54:07 +08:00
11 lines
286 B
Ruby
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
|