Sha256: 9cc53378af1f4621e713d1a22c456d71cba2b39004aa7282c341292c621d8b2c

Contents?: true

Size: 400 Bytes

Versions: 16

Compression:

Stored size: 400 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 "MyString"
    region
  end

  factory :region do
    name "MyString"
  end

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
connection_manager-1.0.4 spec/factories.rb
connection_manager-1.0.3 spec/factories.rb
connection_manager-1.0.2 spec/factories.rb
connection_manager-1.0.1 spec/factories.rb
connection_manager-0.3.11 spec/factories.rb
connection_manager-0.3.10 spec/factories.rb
connection_manager-0.3.9 spec/factories.rb
connection_manager-0.3.8 spec/factories.rb
connection_manager-0.3.7 spec/factories.rb
connection_manager-0.3.6 spec/factories.rb
connection_manager-0.3.5 spec/factories.rb
connection_manager-0.3.4 spec/factories.rb
connection_manager-0.3.3 spec/factories.rb
connection_manager-0.3.2 spec/factories.rb
connection_manager-0.3.1 spec/factories.rb
connection_manager-0.3.0 spec/factories.rb