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
818 B
29 lines
818 B
require 'test_helper'
|
|
|
|
describe Cask::CLI::Info do
|
|
it 'displays some nice info about the specified cask' do
|
|
lambda {
|
|
Cask::CLI::Info.run('alfred')
|
|
}.must_output <<-CLIOUTPUT.undent
|
|
alfred: 1.3.2_265
|
|
http://www.alfredapp.com/
|
|
Not installed
|
|
https://github.com/phinze/cask/commits/master/Casks/alfred.rb
|
|
CLIOUTPUT
|
|
end
|
|
|
|
it 'works for multiple casks' do
|
|
lambda {
|
|
Cask::CLI::Info.run('alfred', 'firefox')
|
|
}.must_output <<-CLIOUTPUT.undent
|
|
alfred: 1.3.2_265
|
|
http://www.alfredapp.com/
|
|
Not installed
|
|
https://github.com/phinze/cask/commits/master/Casks/alfred.rb
|
|
firefox: 17.0.1
|
|
http://www.mozilla.org/en-US/firefox/
|
|
Not installed
|
|
https://github.com/phinze/cask/commits/master/Casks/firefox.rb
|
|
CLIOUTPUT
|
|
end
|
|
end
|
|
|