Sha256: a548c61461716991cc70e0706c7d27513ea5d162d8b5db1826f8ee95ff2ac652
Contents?: true
Size: 441 Bytes
Versions: 5
Compression:
Stored size: 441 Bytes
Contents
# Read about factories at https://github.com/thoughtbot/factory_girl module Pageflow FactoryGirl.define do factory :chapter, :class => Chapter do revision ignore do entry nil end before(:create) do |chapter, evaluator| chapter.revision = evaluator.entry.draft if evaluator.entry end end factory :valid_chapter, :class => Chapter do title "Introduction" end end end
Version data entries
5 entries across 5 versions & 1 rubygems