FactoryBot.define do factory :takeoff_calculator, class: Ecom::Core::TakeoffCalculator do name { Ecom::Core::TakeoffCalculator::TAKEOFF_CALCULATOR_NAMES.sample } is_custom_calculator { false } input_parameters do [ { name: 'number_of_bar', label: 'Number Of Bar', input_type: 'number', default_value: { value: '1' } } ] end end end