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.
 
 

29 lines
920 B

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