diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-04 23:05:05 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-04 23:05:05 +0800 |
commit | 36a73929df7cb47a428fb04740ee81f497327edb (patch) | |
tree | 303b4141caa17c64b628aaf87b265ff45f8fa162 | |
parent | b5a2319764be166c5db1d66d1da1dd608555bb0c (diff) | |
download | gitlab-ce-36a73929df7cb47a428fb04740ee81f497327edb.tar.gz |
Use describe rather than context for this:save-artifacts_sizes
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964/diffs#note_12867416
Guidelines:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/testing.md#general-guidelines
> Use `context` to test branching logic.
-rw-r--r-- | spec/requests/ci/api/builds_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/ci/api/builds_spec.rb b/spec/requests/ci/api/builds_spec.rb index 89cb60bdd0b..e7cbc3dd3a7 100644 --- a/spec/requests/ci/api/builds_spec.rb +++ b/spec/requests/ci/api/builds_spec.rb @@ -293,7 +293,7 @@ describe Ci::API::API do allow(ArtifactUploader).to receive(:artifacts_upload_path).and_return('/') end - context 'build has been erased' do + describe 'build has been erased' do let(:build) { create(:ci_build, erased_at: Time.now) } before do |