diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-04 18:05:05 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-04 18:05:05 +0300 |
commit | 36a73929df7cb47a428fb04740ee81f497327edb (patch) | |
tree | 303b4141caa17c64b628aaf87b265ff45f8fa162 /spec/requests | |
parent | b5a2319764be166c5db1d66d1da1dd608555bb0c (diff) |
Use describe rather than context for this:
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.
Diffstat (limited to 'spec/requests')
-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 |