labels.rb 269 Bytes
Newer Older
1
FactoryGirl.define do
2
  factory :label, class: ProjectLabel do
3
    sequence(:title) { |n| "label#{n}" }
4 5 6
    color "#990000"
    project
  end
7 8 9 10 11 12

  factory :group_label, class: GroupLabel do
    sequence(:title) { |n| "label#{n}" }
    color "#990000"
    group
  end
13
end