Sha256: a2de0c913aeb04735b22348e4c87456c700742b7c7f8f0bfc2ee10ee94ad51b1
Contents?: true
Size: 503 Bytes
Versions: 20
Compression:
Stored size: 503 Bytes
Contents
FactoryBot.define do factory :expense_gun_expense_line, class: ::Dorsale::ExpenseGun::ExpenseLine do name { Faker::Lorem.sentence(3) } category { FactoryBot.create(: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
20 entries across 20 versions & 1 rubygems