Skip to content

Instantly share code, notes, and snippets.

@pupca
Created November 30, 2010 14:53
Show Gist options
  • Save pupca/721781 to your computer and use it in GitHub Desktop.
Save pupca/721781 to your computer and use it in GitHub Desktop.
Factory.define :accounting_income_transaction do |transaction|
transaction.transaction_type "income"
transaction.transaction_mod_type "normal"
transaction.notice "První příjmová transakce"
transaction.amount 50.50
transaction.negative false
transaction.active_at Date.new
transaction.planned 0
transaction.metedata ""#todo
transaction.association :person, :factory => :person
transaction.association :accounting_account, :factory => :accounting_account
transaction.other_accounting_account_id nil
transaction.association :accounting_budget, :factory => :accounting_budget
transaction.other_accounting_budget_id nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment