aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-05 19:26:56 +0100
committerMarkus Reiter2017-03-05 19:26:56 +0100
commit73cbb9df3b877b9c12a50073c191c648ed6e1470 (patch)
treec52b83062f3c0ee1d1dc6b36adfa530ac1356323
parent43bfaa19f1007776e1809a130568e765adc9a7e8 (diff)
downloadbrew-73cbb9df3b877b9c12a50073c191c648ed6e1470.tar.bz2
Add `:cask` to all Cask specs.
-rw-r--r--Library/Homebrew/cask/spec/cask/accessibility_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/alt_target_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/app_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/generic_artifact_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/nested_container_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/postflight_block_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/preflight_block_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/suite_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/two_apps_correct_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/two_apps_incorrect_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/audit_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/cask_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/audit_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/cat_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/create_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/edit_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/fetch_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/home_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/info_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/install_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/list_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/options_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/reinstall_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/search_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/uninstall_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/version_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/zap_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/cli_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/container/dmg_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/container/naked_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/depends_on_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/download_strategy_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/dsl/caveats_spec.rb3
-rw-r--r--Library/Homebrew/cask/spec/cask/dsl/postflight_spec.rb3
-rw-r--r--Library/Homebrew/cask/spec/cask/dsl/preflight_spec.rb3
-rw-r--r--Library/Homebrew/cask/spec/cask/dsl/uninstall_postflight_spec.rb3
-rw-r--r--Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb3
-rw-r--r--Library/Homebrew/cask/spec/cask/dsl_spec.rb6
-rw-r--r--Library/Homebrew/cask/spec/cask/installer_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/pkg_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/scopes_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/staged_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/system_command_result_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/system_command_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/underscore_supporting_uri_spec.rb2
-rw-r--r--Library/Homebrew/cask/spec/cask/url_checker_spec.rb4
-rw-r--r--Library/Homebrew/cask/spec/cask/verify_spec.rb2
53 files changed, 54 insertions, 133 deletions
diff --git a/Library/Homebrew/cask/spec/cask/accessibility_spec.rb b/Library/Homebrew/cask/spec/cask/accessibility_spec.rb
index 71bebfa4b..4ac757e69 100644
--- a/Library/Homebrew/cask/spec/cask/accessibility_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/accessibility_spec.rb
@@ -1,8 +1,6 @@
-require "spec_helper"
-
# TODO: this test should be named after the corresponding class, once
# that class is abstracted from installer.rb.
-describe "Accessibility Access" do
+describe "Accessibility Access", :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-accessibility-access.rb") }
let(:fake_system_command) { class_double(Hbc::SystemCommand) }
let(:installer) { Hbc::Installer.new(cask, command: fake_system_command) }
diff --git a/Library/Homebrew/cask/spec/cask/artifact/alt_target_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/alt_target_spec.rb
index 9a57a9878..9bcdd27a1 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/alt_target_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/alt_target_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::App do
+describe Hbc::Artifact::App, :cask do
describe "activate to alternate target" do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-alt-target.rb") }
diff --git a/Library/Homebrew/cask/spec/cask/artifact/app_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/app_spec.rb
index b3877f000..bfd2d5cd4 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/app_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/app_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::App do
+describe Hbc::Artifact::App, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-caffeine.rb") }
let(:command) { Hbc::SystemCommand }
let(:force) { false }
diff --git a/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb
index c27dcc8f0..1b26773ca 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::Artifact::Binary do
+describe Hbc::Artifact::Binary, :cask do
let(:cask) {
Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-binary.rb").tap do |cask|
shutup do
diff --git a/Library/Homebrew/cask/spec/cask/artifact/generic_artifact_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/generic_artifact_spec.rb
index 7d9128c0e..b383e2d4e 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/generic_artifact_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/generic_artifact_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::Artifact do
+describe Hbc::Artifact::Artifact, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-generic-artifact.rb") }
let(:install_phase) {
diff --git a/Library/Homebrew/cask/spec/cask/artifact/nested_container_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/nested_container_spec.rb
index 31a1cb5eb..3e9a549ea 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/nested_container_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/nested_container_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::NestedContainer do
+describe Hbc::Artifact::NestedContainer, :cask do
describe "install" do
it "extracts the specified paths as containers" do
cask = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/nested-app.rb").tap do |c|
diff --git a/Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb
index 93ef2ecdf..249439900 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/pkg_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::Pkg do
+describe Hbc::Artifact::Pkg, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-installable.rb") }
let(:fake_system_command) { class_double(Hbc::SystemCommand) }
diff --git a/Library/Homebrew/cask/spec/cask/artifact/postflight_block_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/postflight_block_spec.rb
index 6f58afb2a..51b1431f0 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/postflight_block_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/postflight_block_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::PostflightBlock do
+describe Hbc::Artifact::PostflightBlock, :cask do
describe "install_phase" do
it "calls the specified block after installing, passing a Cask mini-dsl" do
called = false
diff --git a/Library/Homebrew/cask/spec/cask/artifact/preflight_block_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/preflight_block_spec.rb
index ac5313bca..b13c4ab9d 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/preflight_block_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/preflight_block_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::PreflightBlock do
+describe Hbc::Artifact::PreflightBlock, :cask do
describe "install_phase" do
it "calls the specified block before installing, passing a Cask mini-dsl" do
called = false
diff --git a/Library/Homebrew/cask/spec/cask/artifact/suite_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/suite_spec.rb
index 79ca0546c..98ae93311 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/suite_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/suite_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::Suite do
+describe Hbc::Artifact::Suite, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-suite.rb") }
let(:install_phase) { -> { Hbc::Artifact::Suite.new(cask).install_phase } }
diff --git a/Library/Homebrew/cask/spec/cask/artifact/two_apps_correct_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/two_apps_correct_spec.rb
index 7fa44dbce..9db22b2a3 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/two_apps_correct_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/two_apps_correct_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::App do
+describe Hbc::Artifact::App, :cask do
describe "multiple apps" do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-two-apps-correct.rb") }
diff --git a/Library/Homebrew/cask/spec/cask/artifact/two_apps_incorrect_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/two_apps_incorrect_spec.rb
index 0aa38d910..6427ec32c 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/two_apps_incorrect_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/two_apps_incorrect_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::App do
+describe Hbc::Artifact::App, :cask do
# FIXME: Doesn't actually raise because the `app` stanza is not evaluated on load.
# it "must raise" do
# lambda {
diff --git a/Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb
index 3150b50be..f88aaa49d 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::Zap do
+describe Hbc::Artifact::Zap, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-installable.rb") }
let(:zap_artifact) {
diff --git a/Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb
index 4c09ea302..b7deb4575 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Artifact::Uninstall do
+describe Hbc::Artifact::Uninstall, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-installable.rb") }
let(:uninstall_artifact) {
diff --git a/Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb
index 47090c99a..fdf2e4f9d 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb
@@ -1,7 +1,5 @@
-require "spec_helper"
-
# TODO: test that zap removes an alternate version of the same Cask
-describe Hbc::Artifact::Zap do
+describe Hbc::Artifact::Zap, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-installable.rb") }
let(:zap_artifact) {
diff --git a/Library/Homebrew/cask/spec/cask/audit_spec.rb b/Library/Homebrew/cask/spec/cask/audit_spec.rb
index 222294bdc..802807fcb 100644
--- a/Library/Homebrew/cask/spec/cask/audit_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/audit_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::Audit do
+describe Hbc::Audit, :cask do
def include_msg?(messages, msg)
if msg.is_a?(Regexp)
Array(messages).any? { |m| m =~ msg }
diff --git a/Library/Homebrew/cask/spec/cask/cask_spec.rb b/Library/Homebrew/cask/spec/cask/cask_spec.rb
index b926be627..d76f2dce9 100644
--- a/Library/Homebrew/cask/spec/cask/cask_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cask_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::Cask do
+describe Hbc::Cask, :cask do
let(:cask) { described_class.new("versioned-cask") }
context "when multiple versions are installed" do
diff --git a/Library/Homebrew/cask/spec/cask/cli/audit_spec.rb b/Library/Homebrew/cask/spec/cask/cli/audit_spec.rb
index b520a88df..2736e60c1 100644
--- a/Library/Homebrew/cask/spec/cask/cli/audit_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/audit_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Audit do
+describe Hbc::CLI::Audit, :cask do
let(:auditor) { double }
let(:cask) { double }
diff --git a/Library/Homebrew/cask/spec/cask/cli/cat_spec.rb b/Library/Homebrew/cask/spec/cask/cli/cat_spec.rb
index 7517c1b5c..daf6fb960 100644
--- a/Library/Homebrew/cask/spec/cask/cli/cat_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/cat_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Cat do
+describe Hbc::CLI::Cat, :cask do
describe "given a basic Cask" do
let(:expected_output) {
<<-EOS.undent
diff --git a/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb b/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb
index 2f4028e2a..f8578e80d 100644
--- a/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::CLI::Cleanup do
+describe Hbc::CLI::Cleanup, :cask do
let(:cache_location) { Pathname.new(Dir.mktmpdir).realpath }
let(:cleanup_outdated) { false }
diff --git a/Library/Homebrew/cask/spec/cask/cli/create_spec.rb b/Library/Homebrew/cask/spec/cask/cli/create_spec.rb
index e3d484d87..21eaeb656 100644
--- a/Library/Homebrew/cask/spec/cask/cli/create_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/create_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
# monkeypatch for testing
module Hbc
class CLI
@@ -19,7 +17,7 @@ module Hbc
end
end
-describe Hbc::CLI::Create do
+describe Hbc::CLI::Create, :cask do
before(:each) do
Hbc::CLI::Create.reset!
end
diff --git a/Library/Homebrew/cask/spec/cask/cli/edit_spec.rb b/Library/Homebrew/cask/spec/cask/cli/edit_spec.rb
index 5ddf27a48..61970290b 100644
--- a/Library/Homebrew/cask/spec/cask/cli/edit_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/edit_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
# monkeypatch for testing
module Hbc
class CLI
@@ -19,7 +17,7 @@ module Hbc
end
end
-describe Hbc::CLI::Edit do
+describe Hbc::CLI::Edit, :cask do
before(:each) do
Hbc::CLI::Edit.reset!
end
diff --git a/Library/Homebrew/cask/spec/cask/cli/fetch_spec.rb b/Library/Homebrew/cask/spec/cask/cli/fetch_spec.rb
index bb8133453..1571c2a70 100644
--- a/Library/Homebrew/cask/spec/cask/cli/fetch_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/fetch_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Fetch do
+describe Hbc::CLI::Fetch, :cask do
let(:local_transmission) {
Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-transmission.rb")
}
diff --git a/Library/Homebrew/cask/spec/cask/cli/home_spec.rb b/Library/Homebrew/cask/spec/cask/cli/home_spec.rb
index a2b49b433..a5359f24f 100644
--- a/Library/Homebrew/cask/spec/cask/cli/home_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/home_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
# monkeypatch for testing
module Hbc
class CLI
@@ -19,7 +17,7 @@ module Hbc
end
end
-describe Hbc::CLI::Home do
+describe Hbc::CLI::Home, :cask do
before do
Hbc::CLI::Home.reset!
end
diff --git a/Library/Homebrew/cask/spec/cask/cli/info_spec.rb b/Library/Homebrew/cask/spec/cask/cli/info_spec.rb
index 6977f81c3..2f70a0b96 100644
--- a/Library/Homebrew/cask/spec/cask/cli/info_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/info_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Info do
+describe Hbc::CLI::Info, :cask do
it "displays some nice info about the specified Cask" do
expect {
Hbc::CLI::Info.run("local-caffeine")
diff --git a/Library/Homebrew/cask/spec/cask/cli/install_spec.rb b/Library/Homebrew/cask/spec/cask/cli/install_spec.rb
index 2544eacc8..5a40017e8 100644
--- a/Library/Homebrew/cask/spec/cask/cli/install_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/install_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Install do
+describe Hbc::CLI::Install, :cask do
it "allows staging and activation of multiple Casks at once" do
shutup do
Hbc::CLI::Install.run("local-transmission", "local-caffeine")
diff --git a/Library/Homebrew/cask/spec/cask/cli/list_spec.rb b/Library/Homebrew/cask/spec/cask/cli/list_spec.rb
index 49c06c521..e367e9588 100644
--- a/Library/Homebrew/cask/spec/cask/cli/list_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/list_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::List do
+describe Hbc::CLI::List, :cask do
it "lists the installed Casks in a pretty fashion" do
casks = %w[local-caffeine local-transmission].map { |c| Hbc.load(c) }
diff --git a/Library/Homebrew/cask/spec/cask/cli/options_spec.rb b/Library/Homebrew/cask/spec/cask/cli/options_spec.rb
index a4381213a..86933e27e 100644
--- a/Library/Homebrew/cask/spec/cask/cli/options_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/options_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI do
+describe Hbc::CLI, :cask do
it "supports setting the appdir" do
Hbc::CLI.process_options %w[help --appdir=/some/path/foo]
diff --git a/Library/Homebrew/cask/spec/cask/cli/reinstall_spec.rb b/Library/Homebrew/cask/spec/cask/cli/reinstall_spec.rb
index df83c53e2..e573a3470 100644
--- a/Library/Homebrew/cask/spec/cask/cli/reinstall_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/reinstall_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Reinstall do
+describe Hbc::CLI::Reinstall, :cask do
it "allows reinstalling a Cask" do
shutup do
Hbc::CLI::Install.run("local-transmission")
diff --git a/Library/Homebrew/cask/spec/cask/cli/search_spec.rb b/Library/Homebrew/cask/spec/cask/cli/search_spec.rb
index b05d3fbde..0bcff809a 100644
--- a/Library/Homebrew/cask/spec/cask/cli/search_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/search_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Search do
+describe Hbc::CLI::Search, :cask do
it "lists the available Casks that match the search term" do
expect {
Hbc::CLI::Search.run("local")
diff --git a/Library/Homebrew/cask/spec/cask/cli/uninstall_spec.rb b/Library/Homebrew/cask/spec/cask/cli/uninstall_spec.rb
index f451af277..cbfb3e237 100644
--- a/Library/Homebrew/cask/spec/cask/cli/uninstall_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/uninstall_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Uninstall do
+describe Hbc::CLI::Uninstall, :cask do
it "shows an error when a bad Cask is provided" do
expect {
Hbc::CLI::Uninstall.run("notacask")
diff --git a/Library/Homebrew/cask/spec/cask/cli/version_spec.rb b/Library/Homebrew/cask/spec/cask/cli/version_spec.rb
index e6fcf4850..2091496fc 100644
--- a/Library/Homebrew/cask/spec/cask/cli/version_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/version_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe "brew cask --version" do
+describe "brew cask --version", :cask do
it "respects the --version argument" do
expect {
expect {
diff --git a/Library/Homebrew/cask/spec/cask/cli/zap_spec.rb b/Library/Homebrew/cask/spec/cask/cli/zap_spec.rb
index d26114567..0f3d024b5 100644
--- a/Library/Homebrew/cask/spec/cask/cli/zap_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli/zap_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::CLI::Zap do
+describe Hbc::CLI::Zap, :cask do
it "shows an error when a bad Cask is provided" do
expect {
Hbc::CLI::Zap.run("notacask")
diff --git a/Library/Homebrew/cask/spec/cask/cli_spec.rb b/Library/Homebrew/cask/spec/cask/cli_spec.rb
index 6b2313a41..1ad6790a3 100644
--- a/Library/Homebrew/cask/spec/cask/cli_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/cli_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::CLI do
+describe Hbc::CLI, :cask do
it "lists the taps for Casks that show up in two taps" do
listing = Hbc::CLI.nice_listing(%w[
caskroom/cask/adium
diff --git a/Library/Homebrew/cask/spec/cask/container/dmg_spec.rb b/Library/Homebrew/cask/spec/cask/container/dmg_spec.rb
index cf35b7545..a94362aba 100644
--- a/Library/Homebrew/cask/spec/cask/container/dmg_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/container/dmg_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Container::Dmg do
+describe Hbc::Container::Dmg, :cask do
describe "#mount!" do
it "does not store nil mounts for dmgs with extra data" do
transmission = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-transmission.rb")
diff --git a/Library/Homebrew/cask/spec/cask/container/naked_spec.rb b/Library/Homebrew/cask/spec/cask/container/naked_spec.rb
index ee4102eca..eb30ef81a 100644
--- a/Library/Homebrew/cask/spec/cask/container/naked_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/container/naked_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Container::Naked do
+describe Hbc::Container::Naked, :cask do
it "saves files with spaces in them from uris with encoded spaces" do
cask = Hbc::Cask.new("spacey") do
url "http://example.com/kevin%20spacey.pkg"
diff --git a/Library/Homebrew/cask/spec/cask/depends_on_spec.rb b/Library/Homebrew/cask/spec/cask/depends_on_spec.rb
index 078a2bce7..81fda2329 100644
--- a/Library/Homebrew/cask/spec/cask/depends_on_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/depends_on_spec.rb
@@ -1,8 +1,6 @@
-require "spec_helper"
-
# TODO: this test should be named after the corresponding class, once
# that class is abstracted from installer.rb
-describe "Satisfy Dependencies and Requirements" do
+describe "Satisfy Dependencies and Requirements", :cask do
subject {
lambda do
shutup do
diff --git a/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb b/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb
index 900ceb3e2..ca082c581 100644
--- a/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb
@@ -1,4 +1,4 @@
-describe "download strategies" do
+describe "download strategies", :cask do
let(:url) { "http://example.com/cask.dmg" }
let(:url_options) { Hash.new }
let(:cask) {
diff --git a/Library/Homebrew/cask/spec/cask/dsl/caveats_spec.rb b/Library/Homebrew/cask/spec/cask/dsl/caveats_spec.rb
index 07940cd0a..aa662e4d0 100644
--- a/Library/Homebrew/cask/spec/cask/dsl/caveats_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/dsl/caveats_spec.rb
@@ -1,7 +1,6 @@
-require "spec_helper"
require "test/support/helper/spec/shared_examples/hbc_dsl_base"
-describe Hbc::DSL::Caveats do
+describe Hbc::DSL::Caveats, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") }
let(:dsl) { Hbc::DSL::Caveats.new(cask) }
diff --git a/Library/Homebrew/cask/spec/cask/dsl/postflight_spec.rb b/Library/Homebrew/cask/spec/cask/dsl/postflight_spec.rb
index d7a8f219d..d2b080ca3 100644
--- a/Library/Homebrew/cask/spec/cask/dsl/postflight_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/dsl/postflight_spec.rb
@@ -1,8 +1,7 @@
-require "spec_helper"
require "test/support/helper/spec/shared_examples/hbc_dsl_base"
require "test/support/helper/spec/shared_examples/hbc_staged"
-describe Hbc::DSL::Postflight do
+describe Hbc::DSL::Postflight, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") }
let(:dsl) { Hbc::DSL::Postflight.new(cask, Hbc::FakeSystemCommand) }
diff --git a/Library/Homebrew/cask/spec/cask/dsl/preflight_spec.rb b/Library/Homebrew/cask/spec/cask/dsl/preflight_spec.rb
index 81b0c7975..b93be95ff 100644
--- a/Library/Homebrew/cask/spec/cask/dsl/preflight_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/dsl/preflight_spec.rb
@@ -1,8 +1,7 @@
-require "spec_helper"
require "test/support/helper/spec/shared_examples/hbc_dsl_base"
require "test/support/helper/spec/shared_examples/hbc_staged"
-describe Hbc::DSL::Preflight do
+describe Hbc::DSL::Preflight, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") }
let(:dsl) { Hbc::DSL::Preflight.new(cask, Hbc::FakeSystemCommand) }
diff --git a/Library/Homebrew/cask/spec/cask/dsl/uninstall_postflight_spec.rb b/Library/Homebrew/cask/spec/cask/dsl/uninstall_postflight_spec.rb
index 448e1b411..f89a181ce 100644
--- a/Library/Homebrew/cask/spec/cask/dsl/uninstall_postflight_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/dsl/uninstall_postflight_spec.rb
@@ -1,7 +1,6 @@
-require "spec_helper"
require "test/support/helper/spec/shared_examples/hbc_dsl_base"
-describe Hbc::DSL::UninstallPostflight do
+describe Hbc::DSL::UninstallPostflight, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") }
let(:dsl) { Hbc::DSL::UninstallPostflight.new(cask, Hbc::FakeSystemCommand) }
diff --git a/Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb b/Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb
index aac34e76a..15a0ea156 100644
--- a/Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/dsl/uninstall_preflight_spec.rb
@@ -1,8 +1,7 @@
-require "spec_helper"
require "test/support/helper/spec/shared_examples/hbc_dsl_base"
require "test/support/helper/spec/shared_examples/hbc_staged"
-describe Hbc::DSL::UninstallPreflight do
+describe Hbc::DSL::UninstallPreflight, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") }
let(:dsl) { Hbc::DSL::UninstallPreflight.new(cask, Hbc::FakeSystemCommand) }
diff --git a/Library/Homebrew/cask/spec/cask/dsl_spec.rb b/Library/Homebrew/cask/spec/cask/dsl_spec.rb
index 99525cc20..7872b42a6 100644
--- a/Library/Homebrew/cask/spec/cask/dsl_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/dsl_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::DSL do
+describe Hbc::DSL, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/#{token}.rb") }
let(:token) { "basic-cask" }
@@ -76,7 +74,7 @@ describe Hbc::DSL do
end
end
- context "when it contains a deprecated DSL version" do
+ context "when it contains a deprecated DSL version", :needs_compat do
let(:token) { "with-dsl-version" }
it "may use deprecated DSL version hash syntax" do
diff --git a/Library/Homebrew/cask/spec/cask/installer_spec.rb b/Library/Homebrew/cask/spec/cask/installer_spec.rb
index c0148c387..7dd5b2bda 100644
--- a/Library/Homebrew/cask/spec/cask/installer_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/installer_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Installer do
+describe Hbc::Installer, :cask do
describe "install" do
let(:empty_depends_on_stub) {
double(formula: [], cask: [], macos: nil, arch: nil, x11: nil)
diff --git a/Library/Homebrew/cask/spec/cask/pkg_spec.rb b/Library/Homebrew/cask/spec/cask/pkg_spec.rb
index 6610b0e48..78a2eb75e 100644
--- a/Library/Homebrew/cask/spec/cask/pkg_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/pkg_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::Pkg do
+describe Hbc::Pkg, :cask do
describe "uninstall" do
let(:fake_system_command) { Hbc::NeverSudoSystemCommand }
let(:empty_response) { double(stdout: "") }
diff --git a/Library/Homebrew/cask/spec/cask/scopes_spec.rb b/Library/Homebrew/cask/spec/cask/scopes_spec.rb
index e6e507da8..330683b2a 100644
--- a/Library/Homebrew/cask/spec/cask/scopes_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/scopes_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::Scopes do
+describe Hbc::Scopes, :cask do
describe "installed" do
it "returns a list installed Casks by loading Casks for all the dirs that exist in the caskroom" do
allow(Hbc).to receive(:load) { |token| "loaded-#{token}" }
diff --git a/Library/Homebrew/cask/spec/cask/staged_spec.rb b/Library/Homebrew/cask/spec/cask/staged_spec.rb
index 10f1cbb47..670775b7a 100644
--- a/Library/Homebrew/cask/spec/cask/staged_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/staged_spec.rb
@@ -1,9 +1,7 @@
-require "spec_helper"
-
# TODO: this test should be named after the corresponding class, once
# that class is abstracted from installer.rb. It makes little sense
# to be invoking bundle_identifier off of the installer instance.
-describe "Operations on staged Casks" do
+describe "Operations on staged Casks", :cask do
describe "bundle ID" do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-transmission.rb") }
let(:installer) { Hbc::Installer.new(cask) }
diff --git a/Library/Homebrew/cask/spec/cask/system_command_result_spec.rb b/Library/Homebrew/cask/spec/cask/system_command_result_spec.rb
index b15d4d437..4a077de7b 100644
--- a/Library/Homebrew/cask/spec/cask/system_command_result_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/system_command_result_spec.rb
@@ -1,6 +1,6 @@
require "hbc/system_command"
-describe Hbc::SystemCommand::Result do
+describe Hbc::SystemCommand::Result, :cask do
describe "::_parse_plist" do
subject { described_class._parse_plist(command, input) }
let(:command) { Hbc::SystemCommand.new("/usr/bin/true", {}) }
diff --git a/Library/Homebrew/cask/spec/cask/system_command_spec.rb b/Library/Homebrew/cask/spec/cask/system_command_spec.rb
index 3f9f8ac2b..8d1180bea 100644
--- a/Library/Homebrew/cask/spec/cask/system_command_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/system_command_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::SystemCommand do
+describe Hbc::SystemCommand, :cask do
describe "when the exit code is 0" do
describe "its result" do
subject { described_class.run("/usr/bin/true") }
diff --git a/Library/Homebrew/cask/spec/cask/underscore_supporting_uri_spec.rb b/Library/Homebrew/cask/spec/cask/underscore_supporting_uri_spec.rb
index a8e2925db..49d3ea63f 100644
--- a/Library/Homebrew/cask/spec/cask/underscore_supporting_uri_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/underscore_supporting_uri_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::UnderscoreSupportingURI do
+describe Hbc::UnderscoreSupportingURI, :cask do
describe "parse" do
it "works like normal on normal URLs" do
uri = Hbc::UnderscoreSupportingURI.parse("http://example.com/TestCask.dmg")
diff --git a/Library/Homebrew/cask/spec/cask/url_checker_spec.rb b/Library/Homebrew/cask/spec/cask/url_checker_spec.rb
index 8d2161586..c505d2cb4 100644
--- a/Library/Homebrew/cask/spec/cask/url_checker_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/url_checker_spec.rb
@@ -1,6 +1,4 @@
-require "spec_helper"
-
-describe Hbc::UrlChecker do
+describe Hbc::UrlChecker, :cask do
describe "request processing" do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") }
let(:checker) { Hbc::UrlChecker.new(cask) }
diff --git a/Library/Homebrew/cask/spec/cask/verify_spec.rb b/Library/Homebrew/cask/spec/cask/verify_spec.rb
index fc62b749c..5d95fb3a2 100644
--- a/Library/Homebrew/cask/spec/cask/verify_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/verify_spec.rb
@@ -1,4 +1,4 @@
-describe Hbc::Verify do
+describe Hbc::Verify, :cask do
let(:cask) { double("cask") }
let(:verification_classes) {