From e644d245e874df4bfac6d2443aca1b7913ea0dfc Mon Sep 17 00:00:00 2001 From: Andrew Walter Date: Fri, 3 Aug 2018 20:33:46 +1000 Subject: [PATCH] CI: Fixed `#to_be_successfully_executed` and `#to_have_exit_status` --- spec/aruba/matchers/command_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/aruba/matchers/command_spec.rb b/spec/aruba/matchers/command_spec.rb index dd1fb937f..327fbbc87 100644 --- a/spec/aruba/matchers/command_spec.rb +++ b/spec/aruba/matchers/command_spec.rb @@ -12,7 +12,7 @@ def announcer(*args) end describe "#to_have_exit_status" do - let(:cmd) { "true" } + let(:cmd) { "exit 0" } before { run_command(cmd) } @@ -21,14 +21,14 @@ def announcer(*args) end context "when does not have exit 0" do - let(:cmd) { "false" } + let(:cmd) { "exit 1" } it { expect(last_command_started).not_to have_exit_status 0 } end end describe "#to_be_successfully_executed_" do - let(:cmd) { "true" } + let(:cmd) { "exit 0" } before { run_command(cmd) } @@ -37,7 +37,7 @@ def announcer(*args) end context "when does not have exit 0" do - let(:cmd) { "false" } + let(:cmd) { "exit 1" } it { expect(last_command_started).not_to be_successfully_executed } end