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.
This commit is contained in:
Lin Jen-Shin 2016-07-04 23:05:05 +08:00
parent b5a2319764
commit 36a73929df
1 changed files with 1 additions and 1 deletions

View File

@ -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