Remove :cask from SystemCommand specs.
This commit is contained in:
parent
fd2a333b45
commit
bcf05f1a48
@ -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?!?!
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user