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:
parent
b5a2319764
commit
36a73929df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue