Sha256: faded83b3c69ed57f6a7a3df90a3a2c066f5f3cd93a109e038d835cf119f36b2

Contents?: true

Size: 357 Bytes

Versions: 7

Compression:

Stored size: 357 Bytes

Contents

require 'factory_girl'

FactoryGirl.define do
  sequence(:random_code)        { Faker::Lorem.characters(10) }
  sequence(:random_description) { Faker::Lorem.paragraphs(1 + Kernel.rand(5)).join("\n") }
  sequence(:random_email)       { Faker::Internet.email }
  sequence(:random_string)      { Faker::Lorem.sentence }
  sequence(:sku) { |n| "SKU-#{n}" }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_core-1.2.3 lib/spree/testing_support/sequences.rb
solidus_core-1.2.2 lib/spree/testing_support/sequences.rb
solidus_core-1.2.1 lib/spree/testing_support/sequences.rb
solidus_core-1.2.0 lib/spree/testing_support/sequences.rb
solidus_core-1.2.0.rc2 lib/spree/testing_support/sequences.rb
solidus_core-1.2.0.rc1 lib/spree/testing_support/sequences.rb
solidus_core-1.2.0.beta1 lib/spree/testing_support/sequences.rb