Sha256: bf88554e09a6244388e93f3cd1e75300b95d7dbef331932185c110fc64d55c20

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

FactoryGirl.define do    
  sequence :rand_name do |n|
    "foo#{(n + (n+rand)).to_s[2..6]}"
  end
  
  factory :basket do
    name "MyString"
  end

  factory :fruit_basket do
    fruit
    basket
  end

  factory :fruit do
    name {FactoryGirl.generate(:rand_name)}
    region
  end

  factory :region do
    name "MyString"
  end

  factory :type do |f|
    f.sequence(:name) {FactoryGirl.generate(:rand_name)}
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
connection_manager-2.0.0 spec/factories.rb
connection_manager-1.1.5 spec/factories.rb
connection_manager-1.1.4 spec/factories.rb
connection_manager-1.1.3 spec/factories.rb
connection_manager-1.1.2 spec/factories.rb
connection_manager-1.1.1 spec/factories.rb
connection_manager-1.1.0 spec/factories.rb