Sha256: d90446097db3ff877d07837faca50a3832fd1d92eacc9f73f64a6e13dfa636d8
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
FactoryGirl.define do factory :account, :class => Borutus::Account do |account| account.name account.contra false end factory :asset, :class => Borutus::Asset do |account| account.name account.contra false end factory :equity, :class => Borutus::Equity do |account| account.name account.contra false end factory :expense, :class => Borutus::Expense do |account| account.name account.contra false end factory :liability, :class => Borutus::Liability do |account| account.name account.contra false end factory :revenue, :class => Borutus::Revenue do |account| account.name account.contra false end sequence :name do |n| "Factory Name #{n}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
borutus-0.2.1 | spec/factories/account_factory.rb |
borutus-0.2.0 | spec/factories/account_factory.rb |
borutus-0.1.0 | spec/factories/account_factory.rb |