diff options
| author | Markus Reiter | 2016-10-19 22:27:14 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-19 22:27:14 +0200 |
| commit | f04a1b59aa817c362ee34767930e7404a0760ccc (patch) | |
| tree | 99b39c735c4cb2b299830ad3f2b50d54ce7e844d | |
| parent | fb29a31c72a21bb4cae0b5830ce3407e3a3d068e (diff) | |
| download | brew-f04a1b59aa817c362ee34767930e7404a0760ccc.tar.bz2 | |
Require `spec_helper` globally.
20 files changed, 2 insertions, 34 deletions
diff --git a/Library/Homebrew/cask/.rspec b/Library/Homebrew/cask/.rspec deleted file mode 100644 index 83e16f804..000000000 --- a/Library/Homebrew/cask/.rspec +++ /dev/null @@ -1,2 +0,0 @@ ---color ---require spec_helper diff --git a/Library/Homebrew/cask/cmd/brew-cask-tests.rb b/Library/Homebrew/cask/cmd/brew-cask-tests.rb index ce62b5d84..4840ab451 100755 --- a/Library/Homebrew/cask/cmd/brew-cask-tests.rb +++ b/Library/Homebrew/cask/cmd/brew-cask-tests.rb @@ -25,6 +25,8 @@ repo_root.cd do if rspec run_tests "parallel_rspec", Dir["spec/**/*_spec.rb"], %w[ + --color + --require spec_helper --format progress --format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log diff --git a/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb index 38b61a7e1..af6973777 100644 --- a/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb +++ b/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::Artifact::Binary do let(:cask) { Hbc.load("with-binary").tap do |cask| diff --git a/Library/Homebrew/cask/spec/cask/audit_spec.rb b/Library/Homebrew/cask/spec/cask/audit_spec.rb index 7094ea3a8..f5a27ea8f 100644 --- a/Library/Homebrew/cask/spec/cask/audit_spec.rb +++ b/Library/Homebrew/cask/spec/cask/audit_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::Audit do include AuditMatchers include Sha256Helper diff --git a/Library/Homebrew/cask/spec/cask/cask_spec.rb b/Library/Homebrew/cask/spec/cask/cask_spec.rb index f31bee023..d470c6ec3 100644 --- a/Library/Homebrew/cask/spec/cask/cask_spec.rb +++ b/Library/Homebrew/cask/spec/cask/cask_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::Cask do let(:cask) { described_class.new("versioned-cask") } diff --git a/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb b/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb index fe8bb2d4d..58ce5b7a3 100644 --- a/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb +++ b/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::CLI::Cleanup do let(:cache_location) { Pathname.new(Dir.mktmpdir).realpath } let(:cleanup_outdated) { false } diff --git a/Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb b/Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb index 3c9c66150..b452fdb19 100644 --- a/Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb +++ b/Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb @@ -1,4 +1,3 @@ -require "spec_helper" require "hbc/version" describe Hbc::CLI::Doctor do diff --git a/Library/Homebrew/cask/spec/cask/cli/style_spec.rb b/Library/Homebrew/cask/spec/cask/cli/style_spec.rb index dbd6970d5..b0d34576a 100644 --- a/Library/Homebrew/cask/spec/cask/cli/style_spec.rb +++ b/Library/Homebrew/cask/spec/cask/cli/style_spec.rb @@ -1,5 +1,4 @@ require "English" -require "spec_helper" describe Hbc::CLI::Style do let(:args) { [] } diff --git a/Library/Homebrew/cask/spec/cask/cli_spec.rb b/Library/Homebrew/cask/spec/cask/cli_spec.rb index 1bdc57b6e..9964275f1 100644 --- a/Library/Homebrew/cask/spec/cask/cli_spec.rb +++ b/Library/Homebrew/cask/spec/cask/cli_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::CLI do it "lists the taps for Casks that show up in two taps" do listing = Hbc::CLI.nice_listing(%w[ diff --git a/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb b/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb index 9b1c4d8e3..f867dc19f 100644 --- a/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb +++ b/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe "download strategies" do let(:url) { "http://example.com/cask.dmg" } let(:url_options) { Hash.new } diff --git a/Library/Homebrew/cask/spec/cask/dsl/version_spec.rb b/Library/Homebrew/cask/spec/cask/dsl/version_spec.rb index b0efa2f10..1dfbb4467 100644 --- a/Library/Homebrew/cask/spec/cask/dsl/version_spec.rb +++ b/Library/Homebrew/cask/spec/cask/dsl/version_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::DSL::Version do include ExpectationsHashHelper diff --git a/Library/Homebrew/cask/spec/cask/macos_spec.rb b/Library/Homebrew/cask/spec/cask/macos_spec.rb index 902c80d7a..a1ebb0a9e 100644 --- a/Library/Homebrew/cask/spec/cask/macos_spec.rb +++ b/Library/Homebrew/cask/spec/cask/macos_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe MacOS do it "says '/' is undeletable" do expect(MacOS).to be_undeletable( diff --git a/Library/Homebrew/cask/spec/cask/scopes_spec.rb b/Library/Homebrew/cask/spec/cask/scopes_spec.rb index 0e592c990..12c1a697f 100644 --- a/Library/Homebrew/cask/spec/cask/scopes_spec.rb +++ b/Library/Homebrew/cask/spec/cask/scopes_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::Scopes do describe "installed" do let(:fake_caskroom) { Pathname(Dir.mktmpdir) } 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 7eb4fb722..a6a51301a 100644 --- a/Library/Homebrew/cask/spec/cask/system_command_result_spec.rb +++ b/Library/Homebrew/cask/spec/cask/system_command_result_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::SystemCommand::Result do describe "::_parse_plist" do 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 c29102305..2af095853 100644 --- a/Library/Homebrew/cask/spec/cask/system_command_spec.rb +++ b/Library/Homebrew/cask/spec/cask/system_command_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::SystemCommand do describe "when the exit code is 0" do describe "its result" do 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 a8756fde0..a8e2925db 100644 --- a/Library/Homebrew/cask/spec/cask/underscore_supporting_uri_spec.rb +++ b/Library/Homebrew/cask/spec/cask/underscore_supporting_uri_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::UnderscoreSupportingURI do describe "parse" do it "works like normal on normal URLs" do diff --git a/Library/Homebrew/cask/spec/cask/verify/checksum_spec.rb b/Library/Homebrew/cask/spec/cask/verify/checksum_spec.rb index a5772b21d..a379dafb9 100644 --- a/Library/Homebrew/cask/spec/cask/verify/checksum_spec.rb +++ b/Library/Homebrew/cask/spec/cask/verify/checksum_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::Verify::Checksum do include Sha256Helper diff --git a/Library/Homebrew/cask/spec/cask/verify_spec.rb b/Library/Homebrew/cask/spec/cask/verify_spec.rb index 5925119ed..fc62b749c 100644 --- a/Library/Homebrew/cask/spec/cask/verify_spec.rb +++ b/Library/Homebrew/cask/spec/cask/verify_spec.rb @@ -1,5 +1,3 @@ -require "spec_helper" - describe Hbc::Verify do let(:cask) { double("cask") } diff --git a/Library/Homebrew/cask/spec/formatter_spec.rb b/Library/Homebrew/cask/spec/formatter_spec.rb index 7e143d933..2c1de9b74 100644 --- a/Library/Homebrew/cask/spec/formatter_spec.rb +++ b/Library/Homebrew/cask/spec/formatter_spec.rb @@ -1,4 +1,3 @@ -require "spec_helper" require "utils/formatter" require "utils/tty" diff --git a/Library/Homebrew/cask/spec/locale_spec.rb b/Library/Homebrew/cask/spec/locale_spec.rb index 98a2de913..69914e23c 100644 --- a/Library/Homebrew/cask/spec/locale_spec.rb +++ b/Library/Homebrew/cask/spec/locale_spec.rb @@ -1,4 +1,3 @@ -require "spec_helper" require "locale" describe Locale do |
