Sha256: f3689e1984409f18ff85b4b53205737c41afddc8b3bc521d6388263591462dc2
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
FactoryGirl.define do factory :amount, :class => Credere::Amount do |amount| amount.amount BigDecimal.new('473') amount.association :entry, :factory => :entry_with_credit_and_debit amount.association :account, :factory => :asset end factory :credit_amount, :class => Credere::CreditAmount do |credit_amount| credit_amount.amount BigDecimal.new('473') credit_amount.association :entry, :factory => :entry_with_credit_and_debit credit_amount.association :account, :factory => :revenue end factory :debit_amount, :class => Credere::DebitAmount do |debit_amount| debit_amount.amount BigDecimal.new('473') debit_amount.association :entry, :factory => :entry_with_credit_and_debit debit_amount.association :account, :factory => :asset end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
credere-0.10.3 | spec/factories/amount_factory.rb |
credere-0.10.2 | spec/factories/amount_factory.rb |
credere-0.10.1 | spec/factories/amount_factory.rb |