From bcf05f1a483599229e10df1a373badfcf17fdf5e Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 20 Jul 2018 17:52:44 +0200 Subject: [PATCH] Remove `:cask` from `SystemCommand` specs. --- Library/Homebrew/test/system_command_result_spec.rb | 4 ++-- Library/Homebrew/test/system_command_spec.rb | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/test/system_command_result_spec.rb b/Library/Homebrew/test/system_command_result_spec.rb index fe2a8df80f..b454e644f2 100644 --- a/Library/Homebrew/test/system_command_result_spec.rb +++ b/Library/Homebrew/test/system_command_result_spec.rb @@ -1,10 +1,10 @@ require "system_command" -describe SystemCommand::Result, :cask do +describe SystemCommand::Result do describe "#plist" do subject { described_class.new(command, stdout, "", 0).plist } - let(:command) { ["/usr/bin/true"] } + let(:command) { ["true"] } let(:garbage) { <<~EOS Hello there! I am in no way XML am I?!?! diff --git a/Library/Homebrew/test/system_command_spec.rb b/Library/Homebrew/test/system_command_spec.rb index b1d732ac30..f57d22f612 100644 --- a/Library/Homebrew/test/system_command_spec.rb +++ b/Library/Homebrew/test/system_command_spec.rb @@ -1,4 +1,4 @@ -describe SystemCommand, :cask do +describe SystemCommand do describe "#initialize" do let(:env_args) { ["bash", "-c", 'printf "%s" "${A?}" "${B?}" "${C?}"'] } @@ -44,7 +44,7 @@ describe SystemCommand, :cask do .with(["/usr/bin/sudo", "/usr/bin/sudo"], "-E", "--", "env", "A=1", "B=2", "C=3", "env", *env_args, {}) .and_wrap_original do |original_popen3, *_, &block| - original_popen3.call("/usr/bin/true", &block) + original_popen3.call("true", &block) end subject.run! @@ -55,7 +55,7 @@ describe SystemCommand, :cask do context "when the exit code is 0" do describe "its result" do - subject { described_class.run("/usr/bin/true") } + subject { described_class.run("true") } it { is_expected.to be_a_success } its(:exit_status) { is_expected.to eq(0) } @@ -63,7 +63,7 @@ describe SystemCommand, :cask do end context "when the exit code is 1" do - let(:command) { "/usr/bin/false" } + let(:command) { "false" } context "and the command must succeed" do it "throws an error" do