Add test around Homebrew preflight

This commit is contained in:
Mike Skalnik
2012-10-03 15:39:38 -04:00
parent ae4a3a31cf
commit ff74cb94e6

View 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