Sha256: 2edb51915a699b1986fddc96d9414bc9d3a536b570e1ae40d329d3b0201e280a
Contents?: true
Size: 490 Bytes
Versions: 7
Compression:
Stored size: 490 Bytes
Contents
FactoryBot.define do factory :expense_gun_expense_line, class: ::Dorsale::ExpenseGun::ExpenseLine do expense { build(:expense_gun_expense) } name { Faker::Lorem.sentence(3) } category { build(:expense_gun_category) } date { Faker::Date.backward(30) } total_all_taxes { rand(100..1000) } vat { rand(1..(total_all_taxes/5)) } company_part { [25, 50, 75, 100].sample } end end
Version data entries
7 entries across 7 versions & 1 rubygems