Browse Source

fix broken info tests

prevent future breakage by relying on testcasks instead of live ones
phinze 12 years ago
parent
commit
6ac7b48ce2
  1. 22
      test/cli/info_test.rb

22
test/cli/info_test.rb

@ -3,27 +3,27 @@ require 'test_helper'
describe Cask::CLI::Info do describe Cask::CLI::Info do
it 'displays some nice info about the specified cask' do it 'displays some nice info about the specified cask' do
lambda { lambda {
Cask::CLI::Info.run('alfred') Cask::CLI::Info.run('local-caffeine')
}.must_output <<-CLIOUTPUT.undent }.must_output <<-CLIOUTPUT.undent
alfred: 1.3.2_265 local-caffeine: 1.2.3
http://www.alfredapp.com/ http://example.com/local-caffeine
Not installed Not installed
https://github.com/phinze/cask/commits/master/Casks/alfred.rb https://github.com/phinze/testcasks/commits/master/Casks/local-caffeine.rb
CLIOUTPUT CLIOUTPUT
end end
it 'works for multiple casks' do it 'works for multiple casks' do
lambda { lambda {
Cask::CLI::Info.run('alfred', 'firefox') Cask::CLI::Info.run('local-caffeine', 'local-transmission')
}.must_output <<-CLIOUTPUT.undent }.must_output <<-CLIOUTPUT.undent
alfred: 1.3.2_265 local-caffeine: 1.2.3
http://www.alfredapp.com/ http://example.com/local-caffeine
Not installed Not installed
https://github.com/phinze/cask/commits/master/Casks/alfred.rb https://github.com/phinze/testcasks/commits/master/Casks/local-caffeine.rb
firefox: 17.0.1 local-transmission: 2.61
http://www.mozilla.org/en-US/firefox/ http://example.com/local-transmission
Not installed Not installed
https://github.com/phinze/cask/commits/master/Casks/firefox.rb https://github.com/phinze/testcasks/commits/master/Casks/local-transmission.rb
CLIOUTPUT CLIOUTPUT
end end
end end

Loading…
Cancel
Save