FactoryGirl.define do factory :equipment_service_rate, class: 'Logistics::Core::EquipmentServiceRate' do code "MyString" description "MyString" effective_date "2017-01-13" name "MyString" rate_hr 1.5 rate_km 1.5 valid_until "2017-01-13" end end