Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-01-24 16:05:01 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-01-26 14:42:48 +0300
commita2618310aea7d58e52d2d29ec4871e27717eb0f0 (patch)
tree63c943c0cd428e82955574f578ef55b5c166f1e6 /spec/lib/gitlab/popen
parent0bf918f05e827b380107d88f4592d1ceedd632f9 (diff)
Use Process::Status rather than an integer
However keep backward compatibility
Diffstat (limited to 'spec/lib/gitlab/popen')
-rw-r--r--spec/lib/gitlab/popen/runner_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/lib/gitlab/popen/runner_spec.rb b/spec/lib/gitlab/popen/runner_spec.rb
index e0450b96e0f..2e2cb4ca28f 100644
--- a/spec/lib/gitlab/popen/runner_spec.rb
+++ b/spec/lib/gitlab/popen/runner_spec.rb
@@ -11,43 +11,43 @@ describe Gitlab::Popen::Runner do
end
end
- describe '#all_good?' do
+ describe '#all_success_and_clean?' do
it 'returns true when exit status is 0 and stderr is empty' do
run_command
- expect(subject).to be_all_good
+ expect(subject).to be_all_success_and_clean
end
it 'returns false when exit status is not 0' do
run_command(exitstatus: 1)
- expect(subject).not_to be_all_good
+ expect(subject).not_to be_all_success_and_clean
end
it 'returns false when exit stderr has something' do
run_command(stderr: 'stderr')
- expect(subject).not_to be_all_good
+ expect(subject).not_to be_all_success_and_clean
end
end
- describe '#all_status_zero?' do
+ describe '#all_success?' do
it 'returns true when exit status is 0' do
run_command
- expect(subject).to be_all_status_zero
+ expect(subject).to be_all_success
end
it 'returns false when exit status is not 0' do
run_command(exitstatus: 1)
- expect(subject).not_to be_all_status_zero
+ expect(subject).not_to be_all_success
end
it 'returns true' do
run_command(stderr: 'stderr')
- expect(subject).to be_all_status_zero
+ expect(subject).to be_all_success
end
end