diff options
Diffstat (limited to 'spec/support/shared_contexts/ci/catalog')
-rw-r--r-- | spec/support/shared_contexts/ci/catalog/resources/version_shared_context.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/shared_contexts/ci/catalog/resources/version_shared_context.rb b/spec/support/shared_contexts/ci/catalog/resources/version_shared_context.rb index 3c9bb980b46..3eeaa52d221 100644 --- a/spec/support/shared_contexts/ci/catalog/resources/version_shared_context.rb +++ b/spec/support/shared_contexts/ci/catalog/resources/version_shared_context.rb @@ -3,14 +3,14 @@ RSpec.shared_context 'when there are catalog resources with versions' do let_it_be(:current_user) { create(:user) } - let_it_be(:project1) { create(:project, :repository) } - let_it_be(:project2) { create(:project, :repository) } - let_it_be(:project3) { create(:project, :repository) } + let_it_be(:project1) { create(:project, :repository, name: 'A') } + let_it_be(:project2) { create(:project, :repository, name: 'Z') } + let_it_be(:project3) { create(:project, :repository, name: 'L', description: 'Z') } let_it_be_with_reload(:resource1) { create(:ci_catalog_resource, project: project1) } let_it_be_with_reload(:resource2) { create(:ci_catalog_resource, project: project2) } let_it_be(:resource3) { create(:ci_catalog_resource, project: project3) } - let_it_be(:release_v1_0) { create(:release, project: project1, tag: 'v1.0', released_at: 4.days.ago) } + let_it_be_with_reload(:release_v1_0) { create(:release, project: project1, tag: 'v1.0', released_at: 4.days.ago) } let_it_be(:release_v1_1) { create(:release, project: project1, tag: 'v1.1', released_at: 3.days.ago) } let_it_be(:release_v2_0) { create(:release, project: project2, tag: 'v2.0', released_at: 2.days.ago) } let_it_be(:release_v2_1) { create(:release, project: project2, tag: 'v2.1', released_at: 1.day.ago) } |