From 0d4768170aabe16106ad502ff5f6da14d8ba9ea5 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/aruba/matchers/command_spec.rb b/spec/aruba/matchers/command_spec.rb index ed6d5b699..dbd12706a 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(:each) { run_command(cmd) } @@ -20,14 +20,14 @@ def announcer(*args) it { expect(last_command_started).to have_exit_status 0 } end - context 'when has exit 0' do - let(:cmd) { 'false' } + context 'when does not have exit 0' do + 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(:each) { run_command(cmd) } @@ -35,8 +35,8 @@ def announcer(*args) it { expect(last_command_started).to be_successfully_executed } end - context 'when has exit 0' do - let(:cmd) { 'false' } + context 'when does not have exit 0' do + let(:cmd) { 'exit 1' } it { expect(last_command_started).not_to be_successfully_executed } end end