Skip to content

Commit

Permalink
CI: Fixed #to_be_successfully_executed and #to_have_exit_status
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrasimplicity authored and mvz committed Jun 18, 2021
1 parent 9974b74 commit 42f9631
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/aruba/matchers/command_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

Expand All @@ -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) }

Expand All @@ -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
Expand Down

0 comments on commit 42f9631

Please sign in to comment.