Sha256: c315dadc0abac7f2ee7e09cb423d120ed3d9a864397da3882854e944c2f1da52

Contents?: true

Size: 305 Bytes

Versions: 4

Compression:

Stored size: 305 Bytes

Contents

Factory.define :transaction do |transaction|
  transaction.description 'factory description'
  transaction.credit_account {|credit_account| credit_account.association(:asset)}
  transaction.debit_account {|debit_account| debit_account.association(:revenue)}
  transaction.amount BigDecimal.new('100')
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
blawzoo-plutus-0.5.3 spec/factories/transaction_factory.rb
plutus-0.5.2 spec/factories/transaction_factory.rb
plutus-0.5.1 spec/factories/transaction_factory.rb
plutus-0.4.2 spec/factories/transaction_factory.rb