Sha256: ee5e2113d77bfcdde9b881515b21de8083c57ac47bc25b7ef34b5f1866cf9979

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

FactoryGirl.define do
  factory :ecm_downloads_download_category, class: Ecm::Downloads::DownloadCategory do
    sequence(:name) { |i| "Download category ##{i}" }
    locale I18n.default_locale.to_s

    factory :download_category_with_parent do
      locale nil
      association :parent, factory: :ecm_downloads_download_category
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecm_downloads2-5.0.4 spec/factories/ecm_downloads_download_categories.rb
ecm_downloads2-5.0.2 spec/factories/ecm_downloads_download_categories.rb
ecm_downloads2-5.0.1 spec/factories/ecm_downloads_download_categories.rb