mirror of
https://github.com/zhigang1992/boxen.git
synced 2026-01-12 17:12:46 +08:00
Add test around /etc/my.cnf Preflight
This commit is contained in:
10
test/boxen_preflight_etc_my_cnf_test.rb
Normal file
10
test/boxen_preflight_etc_my_cnf_test.rb
Normal 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
|
||||
Reference in New Issue
Block a user