Sha256: 48adafc0354f74eb982b500c8974c7c4dbeeac452ea39e7f981ceea5b00aee8d

Contents?: true

Size: 732 Bytes

Versions: 3

Compression:

Stored size: 732 Bytes

Contents

FactoryGirl.define do
  factory :account, :class => Credere::Account do |account|
    account.name
    account.contra false
  end

  factory :asset, :class => Credere::Asset do |account|
    account.name
    account.contra false
  end

  factory :equity, :class => Credere::Equity do |account|
    account.name
    account.contra false
  end

  factory :expense, :class => Credere::Expense do |account|
    account.name
    account.contra false
  end

  factory :liability, :class => Credere::Liability do |account|
    account.name
    account.contra false
  end

  factory :revenue, :class => Credere::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
credere-0.10.3 spec/factories/account_factory.rb
credere-0.10.2 spec/factories/account_factory.rb
credere-0.10.1 spec/factories/account_factory.rb