summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2017-10-30 10:25:28 +0100
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2017-10-30 10:25:30 +0100
commit8275e34e41cc6a6e20c2c4fbfa5dccd9c8e498b6 (patch)
treef8b5f6153a9bcecf014b28d6dd3fcf4fbef67c45 /spec/factories
parent2573818f6d53f5d89a2615b78551253a3bab4cfa (diff)
downloadgitlab-ce-8275e34e41cc6a6e20c2c4fbfa5dccd9c8e498b6.tar.gz
Ci::Build tag is a trait instead of an own factory
Minor annoyance of mine, and there were a couple of things wrong, for example: 1. Switching on a property is just a trait 2. It didn't inherrit from its parent Find and replace through the code based fixed all occurances.
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/ci/builds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb
index c2b59239af9..cf38066dedc 100644
--- a/spec/factories/ci/builds.rb
+++ b/spec/factories/ci/builds.rb
@@ -119,7 +119,7 @@ FactoryGirl.define do
finished_at nil
end
- factory :ci_build_tag do
+ trait :tag do
tag true
end