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

Version Path
plutus-0.15 spec/factories/entry_factory.rb
plutus-0.14 spec/factories/entry_factory.rb
odania_plutus-0.13 spec/factories/entry_factory.rb
plutus-0.13 spec/factories/entry_factory.rb
plutus-0.12.2 spec/factories/entry_factory.rb
plutus-0.11.0 spec/factories/entry_factory.rb
plutus-0.10.1 spec/factories/entry_factory.rb
plutus-0.10.0 spec/factories/entry_factory.rb
plutus-0.9.0 spec/factories/entry_factory.rb