|
|
|
require 'test_helper'
|
|
|
|
|
|
|
|
describe Cask::CLI::Info do
|
|
|
|
it 'displays some nice info about the specified cask' do
|
|
|
|
lambda {
|
|
|
|
Cask::CLI::Info.run('local-caffeine')
|
|
|
|
}.must_output <<-CLIOUTPUT.undent
|
|
|
|
local-caffeine: 1.2.3
|
|
|
|
http://example.com/local-caffeine
|
|
|
|
Not installed
|
|
|
|
https://github.com/phinze/testcasks/commits/master/Casks/local-caffeine.rb
|
|
|
|
CLIOUTPUT
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'works for multiple casks' do
|
|
|
|
lambda {
|
|
|
|
Cask::CLI::Info.run('local-caffeine', 'local-transmission')
|
|
|
|
}.must_output <<-CLIOUTPUT.undent
|
|
|
|
local-caffeine: 1.2.3
|
|
|
|
http://example.com/local-caffeine
|
|
|
|
Not installed
|
|
|
|
https://github.com/phinze/testcasks/commits/master/Casks/local-caffeine.rb
|
|
|
|
local-transmission: 2.61
|
|
|
|
http://example.com/local-transmission
|
|
|
|
Not installed
|
|
|
|
https://github.com/phinze/testcasks/commits/master/Casks/local-transmission.rb
|
|
|
|
CLIOUTPUT
|
|
|
|
end
|
|
|
|
end
|