Sha256: 50f1d4e73e8a1e148e0eef29434047072a83a48d97236cb80126d96a1078390b

Contents?: true

Size: 415 Bytes

Versions: 46

Compression:

Stored size: 415 Bytes

Contents

# Factories
require 'factory_girl'

Factory.sequence :fork_name do |n|
  "fork %d04" % n
end

Factory.define :fork do |f|
  f.name { Factory.next(:fork_name) }
end

Factory.define :tine do |t|
  t.association :fork
end

Factory.define :rusty_tine, :class => Tine do |t|
  t.association :fork
  t.rusty true
end

Factory.define :fancy_fork, :class => Fork do |t|
  t.name { "Fancy " + Factory.next(:fork_name) }
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
pickle-0.4.11 features/app/factories.rb
pickle-0.4.10 features/app/factories.rb
pickle-0.4.9 features/app/factories.rb
pickle-0.4.8 features/app/factories.rb
pickle-0.4.7 features/app/factories.rb
pickle-0.4.6 features/app/factories.rb
pickle-0.4.5 features/app/factories.rb
pickle-0.4.4 features/app/factories.rb
judit-pickle-0.4.2 features/app/factories.rb
pickle-0.4.3 features/app/factories.rb
pickle-has_many_support-0.4.2 features/app/factories.rb
pickle-0.4.2 features/app/factories.rb
pickle-0.4.1 features/app/factories.rb
pickle-0.4.0 features/app/factories.rb
pickle-0.3.5 features/app/factories.rb
pickle-0.3.4 features/app/factories.rb
pickle-0.3.3 features/app/factories.rb
pickle-0.3.2 features/app/factories.rb
pickle-0.3.1 features/app/factories.rb
pickle-has_many_support-0.3.1 features/app/factories.rb