Sha256: 8f6fdf7643fcae0061e50ba173334ce9f0d22e0709a6644d85f9fbaa2d2ef893
Contents?: true
Size: 750 Bytes
Versions: 2
Compression:
Stored size: 750 Bytes
Contents
FactoryGirl.define do factory :account, :class => Plutus::Account do |account| account.name account.contra { false } end factory :asset, :class => Plutus::Asset do |account| account.name account.contra { false } end factory :equity, :class => Plutus::Equity do |account| account.name account.contra { false } end factory :expense, :class => Plutus::Expense do |account| account.name account.contra { false } end factory :liability, :class => Plutus::Liability do |account| account.name account.contra { false } end factory :revenue, :class => Plutus::Revenue do |account| account.name account.contra { false } end sequence :name do |n| "Factory Name #{n}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plutus-0.17 | spec/factories/account_factory.rb |
plutus-0.16 | spec/factories/account_factory.rb |