You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
357 B

# wire in a fake appdir per-test
module FakeAppdirHooks
def before_setup
super
@canned_appdir = HOMEBREW_REPOSITORY/"Applications-#{Time.now.to_i}-#{rand(1024)}"
@canned_appdir.mkpath
Cask.appdir = @canned_appdir
end
def after_teardown
super
@canned_appdir.rmtree
end
end
class MiniTest::Spec
include FakeAppdirHooks
end