diff options
author | Rémy Coutable <remy@rymai.me> | 2017-11-07 10:59:38 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-11-07 10:59:38 +0000 |
commit | 31e3ef93e53802bb99b342a7b403972493ed63cc (patch) | |
tree | 150d4328b00f71c2f28f7a58003b73e3d0548b5c /spec/factories | |
parent | 2ec5ae21b8ab16bea83c4b00df5bf17be8ad34c6 (diff) | |
parent | 1f773a8ef5a1f76166d0455c6a5e473278885c17 (diff) | |
download | gitlab-ce-31e3ef93e53802bb99b342a7b403972493ed63cc.tar.gz |
Merge branch 'feature/custom-attributes-on-projects-and-groups' into 'master'
Support custom attributes on groups and projects
See merge request gitlab-org/gitlab-ce!14593
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/group_custom_attributes.rb | 7 | ||||
-rw-r--r-- | spec/factories/project_custom_attributes.rb | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/spec/factories/group_custom_attributes.rb b/spec/factories/group_custom_attributes.rb new file mode 100644 index 00000000000..7ff5f376e8b --- /dev/null +++ b/spec/factories/group_custom_attributes.rb @@ -0,0 +1,7 @@ +FactoryGirl.define do + factory :group_custom_attribute do + group + sequence(:key) { |n| "key#{n}" } + sequence(:value) { |n| "value#{n}" } + end +end diff --git a/spec/factories/project_custom_attributes.rb b/spec/factories/project_custom_attributes.rb new file mode 100644 index 00000000000..5eedeb86304 --- /dev/null +++ b/spec/factories/project_custom_attributes.rb @@ -0,0 +1,7 @@ +FactoryGirl.define do + factory :project_custom_attribute do + project + sequence(:key) { |n| "key#{n}" } + sequence(:value) { |n| "value#{n}" } + end +end |