Sha256: 8f6fa5d5f07b495f8c6d8e2b23b121ab00bca29a7d3c4791a050654793f06af3
Contents?: true
Size: 409 Bytes
Versions: 9
Compression:
Stored size: 409 Bytes
Contents
FactoryGirl.define do factory :entry, :class => Plutus::Entry do |entry| entry.description 'factory description' factory :entry_with_credit_and_debit, :class => Plutus::Entry do |entry_cd| entry_cd.after_build do |t| t.credit_amounts << FactoryGirl.build(:credit_amount, :entry => t) t.debit_amounts << FactoryGirl.build(:debit_amount, :entry => t) end end end end
Version data entries
9 entries across 9 versions & 2 rubygems