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.
20 lines
541 B
20 lines
541 B
require 'test_helper'
|
|
|
|
describe Cask::CLI::Install do
|
|
it "allows install of multiple casks at once" do
|
|
shutup do
|
|
Cask::CLI::Install.run('local-transmission', 'local-caffeine')
|
|
end
|
|
|
|
Cask.load('local-transmission').must_be :installed?
|
|
Cask.load('local-caffeine').must_be :installed?
|
|
end
|
|
|
|
it "properly handles casks that are not present" do
|
|
lambda {
|
|
Cask::CLI::Install.run('what-the-balls')
|
|
}.must_output <<-OUTPUT.gsub(/^ */, '')
|
|
Error: No available cask for what-the-balls
|
|
OUTPUT
|
|
end
|
|
end
|
|
|