Sha256: 0b25a54c5dbaee0750d8f94e867f14616e0e1510a79f98cfe65e63177283f9ad

Contents?: true

Size: 338 Bytes

Versions: 16

Compression:

Stored size: 338 Bytes

Contents

FactoryGirl.define do
  factory :ecm_courses_course_category, class: Ecm::Courses::CourseCategory do
    sequence(:name) { |i| "Course category ##{i}" }
    locale I18n.locale.to_s

    factory :ecm_courses_course_category_with_parent do
      locale nil
      association :parent, factory: :ecm_courses_course_category
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ecm_courses2-1.1.4 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-1.1.3 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-1.1.2 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-1.1.1 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-1.1.0 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-1.0.3 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-1.0.2 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-1.0.1 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-1.0.0 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-0.2.4 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-0.2.3 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-0.2.2 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-0.2.1 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-0.2.0 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-0.1.0 spec/factories/ecm/courses/course_category_factories.rb
ecm_courses2-0.0.1 spec/factories/ecm/courses/course_category_factories.rb