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.3.0 features/app/factories.rb
pickle-0.2.12 features/app/factories.rb
pickle-0.2.11 features/app/factories.rb
pickle-0.2.10 features/app/factories.rb
pickle-0.2.9 features/app/factories.rb
pickle-0.2.8 features/app/factories.rb
pickle-0.2.7 features/app/factories.rb
pickle-0.2.6 features/app/factories.rb
pickle-0.2.5 features/app/factories.rb
pickle-0.2.4 features/app/factories.rb
pickle-0.2.3 features/app/factories.rb
pickle-0.2.2 features/app/factories.rb
kbaum-pickle-0.2.1.4 features/app/factories.rb
kbaum-pickle-0.2.1.3 features/app/factories.rb
kbaum-pickle-0.2.1.2 features/app/factories.rb
kbaum-pickle-0.2.1.1 features/app/factories.rb
pickle-0.2.1 features/app/factories.rb
pickle-0.2.0 features/app/factories.rb
pickle-0.1.23 features/app/factories.rb
pickle-0.1.22 features/app/factories.rb