4af9d592c5
I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
43 lines
1.1 KiB
Ruby
43 lines
1.1 KiB
Ruby
FactoryBot.define do
|
|
factory :conversational_development_index_metric, class: ConversationalDevelopmentIndex::Metric do
|
|
leader_issues 9.256
|
|
instance_issues 1.234
|
|
percentage_issues 13.331
|
|
|
|
leader_notes 30.33333
|
|
instance_notes 28.123
|
|
percentage_notes 92.713
|
|
|
|
leader_milestones 16.2456
|
|
instance_milestones 1.234
|
|
percentage_milestones 7.595
|
|
|
|
leader_boards 5.2123
|
|
instance_boards 3.254
|
|
percentage_boards 62.429
|
|
|
|
leader_merge_requests 1.2
|
|
instance_merge_requests 0.6
|
|
percentage_merge_requests 50.0
|
|
|
|
leader_ci_pipelines 12.1234
|
|
instance_ci_pipelines 2.344
|
|
percentage_ci_pipelines 19.334
|
|
|
|
leader_environments 3.3333
|
|
instance_environments 2.2222
|
|
percentage_environments 66.672
|
|
|
|
leader_deployments 1.200
|
|
instance_deployments 0.771
|
|
percentage_deployments 64.25
|
|
|
|
leader_projects_prometheus_active 0.111
|
|
instance_projects_prometheus_active 0.109
|
|
percentage_projects_prometheus_active 98.198
|
|
|
|
leader_service_desk_issues 15.891
|
|
instance_service_desk_issues 13.345
|
|
percentage_service_desk_issues 83.978
|
|
end
|
|
end
|