Sha256: 981fc10f7705f66faf4ab017c45192e5ae2edf851f4ff9e2226171747f301fec

Contents?: true

Size: 260 Bytes

Versions: 6

Compression:

Stored size: 260 Bytes

Contents

require 'factory_girl'

FactoryGirl.define do
  factory :category do
    sequence(:name) { |n| "category_#{n}" }
  end

  factory :product do
    sequence(:name) { |n| "product_#{n}" }
  end

  factory :item do
    sequence(:name) { |n| "item_#{n}" }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
token_field-2.0.0 spec/factories/factories.rb
token_field-1.1.0 spec/factories/factories.rb
token_field-1.0.1 spec/factories/factories.rb
token_field-1.0.0 spec/factories/factories.rb
token_field-0.0.3 spec/factories/factories.rb
token_field-0.0.2 spec/factories/factories.rb