Convert brew cask test to spec.

This commit is contained in:
Markus Reiter 2017-02-23 05:59:55 +01:00
parent c7121f6be5
commit bf2a03086d
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