mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 14:26:45 -06:00
because our code tries to use it when throwing exceptions also move HOMEBREW_BREW_FILE from doctor_test.rb to test_helper.rb
18 lines
467 B
Ruby
18 lines
467 B
Ruby
require 'test_helper'
|
|
require 'cask/version'
|
|
|
|
describe Cask::CLI::Doctor do
|
|
it 'displays some nice info about the environment' do
|
|
out, err = capture_io do
|
|
Cask::CLI::Doctor.run
|
|
end
|
|
# no point in trying to match more of this environment-specific info
|
|
out.must_match /\A==> OS X Version:/
|
|
end
|
|
|
|
it "raises an exception when arguments are given" do
|
|
lambda {
|
|
Cask::CLI::Doctor.run('argument')
|
|
}.must_raise ArgumentError
|
|
end
|
|
end
|