Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ci/catalog/resources.rb')
-rw-r--r--spec/factories/ci/catalog/resources.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/ci/catalog/resources.rb b/spec/factories/ci/catalog/resources.rb
index c663164d449..981328dc16e 100644
--- a/spec/factories/ci/catalog/resources.rb
+++ b/spec/factories/ci/catalog/resources.rb
@@ -3,5 +3,9 @@
FactoryBot.define do
factory :ci_catalog_resource, class: 'Ci::Catalog::Resource' do
project factory: :project
+
+ trait :published do
+ state { :published }
+ end
end
end