Sha256: ba31b9ff19ad91ea4a59ed8f6dba2ba7a18bc591289942b52b552d1aeee3098e

Contents?: true

Size: 350 Bytes

Versions: 17

Compression:

Stored size: 350 Bytes

Contents

FactoryGirl.define do
  factory :expense_gun_expense, class: ::Dorsale::ExpenseGun::Expense do
    name { Faker::Lorem.sentence(3) }
    date { Date.today               }
    user { create(:user)            }

    after(:create) { |expense|
      rand(2..5).times {
        create(:expense_gun_expense_line, expense: expense)
      }
    }

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dorsale-2.7.3 spec/factories/expense_gun_expenses.rb
dorsale-2.7.2 spec/factories/expense_gun_expenses.rb
dorsale-2.7.1 spec/factories/expense_gun_expenses.rb
dorsale-2.7.0 spec/factories/expense_gun_expenses.rb
dorsale-2.6.8 spec/factories/expense_gun_expenses.rb
dorsale-2.6.7 spec/factories/expense_gun_expenses.rb
dorsale-2.6.6 spec/factories/expense_gun_expenses.rb
dorsale-2.6.5 spec/factories/expense_gun_expenses.rb
dorsale-2.6.4 spec/factories/expense_gun_expenses.rb
dorsale-2.6.3 spec/factories/expense_gun_expenses.rb
dorsale-2.6.2 spec/factories/expense_gun_expenses.rb
dorsale-2.6.1 spec/factories/expense_gun_expenses.rb
dorsale-2.6.0 spec/factories/expense_gun_expenses.rb
dorsale-2.5.0 spec/factories/expense_gun_expenses.rb
dorsale-2.4.3 spec/factories/expense_gun_expenses.rb
dorsale-2.4.2 spec/factories/expense_gun_expenses.rb
dorsale-2.4.1 spec/factories/expense_gun_expenses.rb