Merge pull request #2161 from reitermarkus/spec-cask

Convert `brew cask` test to spec.
This commit is contained in:
Markus Reiter 2017-02-25 04:56:57 +01:00 committed by GitHub
commit 2a45dfdf27
2 changed files with 8 additions and 10 deletions

View File

@ -1,10 +0,0 @@
require "testing_env"
class IntegrationCommandTestCask < IntegrationCommandTestCase
def test_cask
needs_test_cmd_taps
needs_macos
setup_remote_tap("caskroom/cask")
cmd("cask", "list", "--caskroom=#{HOMEBREW_PREFIX}/Caskroom")
end
end

View File

@ -0,0 +1,8 @@
describe "brew cask", :integration_test, :needs_macos, :needs_official_cmd_taps do
describe "list" do
it "returns a list of installed Casks" do
setup_remote_tap("caskroom/cask")
expect { brew "cask", "list" }.to be_a_success
end
end
end