Sha256: bad5140fa3ae66c960ecee2c3f10c816fd296af5b302f0a84e788798bfd68c90

Contents?: true

Size: 726 Bytes

Versions: 14

Compression:

Stored size: 726 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

14 entries across 14 versions & 2 rubygems

Version Path
plutus-0.15 spec/factories/account_factory.rb
plutus-0.14 spec/factories/account_factory.rb
odania_plutus-0.13 spec/factories/account_factory.rb
plutus-0.13 spec/factories/account_factory.rb
plutus-0.12.2 spec/factories/account_factory.rb
plutus-0.11.0 spec/factories/account_factory.rb
plutus-0.10.1 spec/factories/account_factory.rb
plutus-0.10.0 spec/factories/account_factory.rb
plutus-0.9.0 spec/factories/account_factory.rb
plutus-0.8.1 spec/factories/account_factory.rb
plutus-0.8.0 spec/factories/account_factory.rb
plutus-0.7.4 spec/factories/account_factory.rb
plutus-0.7.2 spec/factories/account_factory.rb
plutus-0.7.0 spec/factories/account_factory.rb