mirror of
https://github.com/zhigang1992/boxen.git
synced 2026-01-12 08:54:07 +08:00
Add test around Homebrew preflight
This commit is contained in:
10
test/boxen_preflight_homebrew_test.rb
Normal file
10
test/boxen_preflight_homebrew_test.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
require 'boxen/test'
|
||||
require 'boxen/preflight/homebrew'
|
||||
|
||||
class BoxenPreflightHomebrewTest < Boxen::Test
|
||||
def test_directory_check
|
||||
preflight = Boxen::Preflight::Homebrew.new(mock('config'))
|
||||
File.expects(:exist?).with("/usr/local/Library/Homebrew").returns(false)
|
||||
assert preflight.ok?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user