|
@ -3,13 +3,13 @@ require 'test_helper' |
|
|
describe Cask::Installer do |
|
|
describe Cask::Installer do |
|
|
describe "install" do |
|
|
describe "install" do |
|
|
it "downloads and installs a nice fresh Cask" do |
|
|
it "downloads and installs a nice fresh Cask" do |
|
|
caffeine = Cask.load('caffeine') |
|
|
caffeine = Cask.load('local-caffeine') |
|
|
|
|
|
|
|
|
shutup do |
|
|
shutup do |
|
|
Cask::Installer.install(caffeine) |
|
|
Cask::Installer.install(caffeine) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
dest_path = HOMEBREW_CELLAR/'caffeine'/caffeine.version |
|
|
dest_path = HOMEBREW_CELLAR/'local-caffeine'/caffeine.version |
|
|
dest_path.must_be :directory? |
|
|
dest_path.must_be :directory? |
|
|
application = dest_path/'Caffeine.app' |
|
|
application = dest_path/'Caffeine.app' |
|
|
application.must_be :directory? |
|
|
application.must_be :directory? |
|
@ -18,14 +18,14 @@ describe Cask::Installer do |
|
|
|
|
|
|
|
|
describe "uninstall" do |
|
|
describe "uninstall" do |
|
|
it "fully uninstalls a cask" do |
|
|
it "fully uninstalls a cask" do |
|
|
caffeine = Cask.load('caffeine') |
|
|
caffeine = Cask.load('local-caffeine') |
|
|
|
|
|
|
|
|
shutup do |
|
|
shutup do |
|
|
Cask::Installer.install(caffeine) |
|
|
Cask::Installer.install(caffeine) |
|
|
Cask::Installer.uninstall(caffeine) |
|
|
Cask::Installer.uninstall(caffeine) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
dest_path = HOMEBREW_CELLAR/'caffeine'/caffeine.version |
|
|
dest_path = HOMEBREW_CELLAR/'local-caffeine'/caffeine.version |
|
|
application = dest_path/'Caffeine.app' |
|
|
application = dest_path/'Caffeine.app' |
|
|
|
|
|
|
|
|
application.wont_be :directory? |
|
|
application.wont_be :directory? |
|
|