Sha256: 4f481a637193cd5b479100b0fade698ebf56b2e188d38da00e608b6b3ccbf587

Contents?: true

Size: 449 Bytes

Versions: 54

Compression:

Stored size: 449 Bytes

Contents

FactoryGirl.define do
  factory :expense_gun_expense_line, class: ::Dorsale::ExpenseGun::ExpenseLine do
    name            { Faker::Lorem.sentence(3)      }
    category        { FactoryGirl.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

54 entries across 54 versions & 1 rubygems

Version Path
dorsale-3.8.1 spec/factories/expense_gun_expense_lines.rb
dorsale-3.8.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.7.8 spec/factories/expense_gun_expense_lines.rb
dorsale-3.7.7 spec/factories/expense_gun_expense_lines.rb
dorsale-3.7.6 spec/factories/expense_gun_expense_lines.rb
dorsale-3.7.5 spec/factories/expense_gun_expense_lines.rb
dorsale-3.7.4 spec/factories/expense_gun_expense_lines.rb
dorsale-3.7.2 spec/factories/expense_gun_expense_lines.rb
dorsale-3.7.1 spec/factories/expense_gun_expense_lines.rb
dorsale-3.7.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.6.1 spec/factories/expense_gun_expense_lines.rb
dorsale-3.6.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.5.2 spec/factories/expense_gun_expense_lines.rb
dorsale-3.5.1 spec/factories/expense_gun_expense_lines.rb
dorsale-3.5.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.4.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.3.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.2.0 spec/factories/expense_gun_expense_lines.rb
dorsale-3.1.7 spec/factories/expense_gun_expense_lines.rb
dorsale-3.1.6 spec/factories/expense_gun_expense_lines.rb