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

Version Path
dorsale-3.14.3 spec/factories/expense_gun_expense_lines.rb
dorsale-3.14.2 spec/factories/expense_gun_expense_lines.rb
dorsale-3.14.1 spec/factories/expense_gun_expense_lines.rb
dorsale-3.14.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.13.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.12.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.11.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.10.3 spec/factories/expense_gun_expense_lines.rb
dorsale-3.10.2 spec/factories/expense_gun_expense_lines.rb
dorsale-3.10.1 spec/factories/expense_gun_expense_lines.rb
dorsale-3.10.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.8 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.7 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.6 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.5 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.4 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.3 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.2 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.1 spec/factories/expense_gun_expense_lines.rb
dorsale-3.9.0 spec/factories/expense_gun_expense_lines.rb