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.
28 lines
717 B
28 lines
717 B
require 'test_helper'
|
|
|
|
describe Cask::CLI::Unlinkapps do
|
|
before do
|
|
shutup do
|
|
# use CLI so both casks start installed and linked
|
|
Cask::CLI::Install.run('local-caffeine', 'local-transmission')
|
|
end
|
|
end
|
|
|
|
it "only unlinks casks mentioned when arguments are provided" do
|
|
shutup do
|
|
Cask::CLI::Unlinkapps.run('local-transmission')
|
|
end
|
|
|
|
(Cask.appdir/"Transmission.app").wont_be :symlink?
|
|
(Cask.appdir/"Caffeine.app").must_be :symlink?
|
|
end
|
|
|
|
it "unlinks all installed casks when no arguments supplied" do
|
|
shutup do
|
|
Cask::CLI::Unlinkapps.run
|
|
end
|
|
|
|
(Cask.appdir/"Transmission.app").wont_be :symlink?
|
|
(Cask.appdir/"Caffeine.app").wont_be :symlink?
|
|
end
|
|
end
|
|
|