Sha256: 0dc25a16a0344553f8ce49e531b41b75f5d28b250abad8de4b9128cfa5a53f1e
Contents?: true
Size: 453 Bytes
Versions: 6
Compression:
Stored size: 453 Bytes
Contents
# Factories require 'factory_girl' FactoryGirl.define do sequence :fork_name do |n| "fork %d04" % n end factory :fork do |f| f.name { FactoryGirl.generate(:fork_name) } end factory :tine do |t| t.association :fork end factory :rusty_tine, :class => Tine do |t| t.association :fork t.rusty true end factory :fancy_fork, :class => Fork do |t| t.name { "Fancy " + FactoryGirl.generate(:fork_name) } end end
Version data entries
6 entries across 6 versions & 2 rubygems