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