Files
project-work/worker-toolkit-stocks-in-the-future/repo/test/factories/stocks.rb
Eric Bell 392781f7aa chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
2026-08-11 14:44:09 -04:00

25 lines
767 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :stock do
sequence(:ticker) { |n| "STOCK#{n}" }
stock_exchange { "NYSE" }
sequence(:company_name) { |n| "Sample Company#{n} Inc." }
company_website { "https://example.com" }
description { "A sample stock for testing" }
industry { "Technology" }
management { "CEO: John Doe" }
employees { 1000 }
sequence(:competitor_names) { |n| "Competitor #{n}, Competitor #{n + 1}" }
sales_growth { 5.5 }
industry_avg_sales_growth { 4.2 }
debt_to_equity { 0.3 }
industry_avg_debt_to_equity { 0.4 }
profit_margin { 15.2 }
industry_avg_profit_margin { 12.8 }
cash_flow { 1_000_000.00 }
debt { 500_000.00 }
price_cents { 12_500 } # $125.00
end
end