Fix syntax for nil property

This commit is contained in:
Luis Ramos
2020-12-10 23:44:24 +00:00
parent bcf7cc1013
commit 79c538fad9

View File

@@ -78,7 +78,7 @@ FactoryBot.define do
end
factory :enterprise_fee, class: EnterpriseFee do
transient { amount nil }
transient { amount { nil } }
sequence(:name) { |n| "Enterprise fee #{n}" }
sequence(:fee_type) { |n| EnterpriseFee::FEE_TYPES[n % EnterpriseFee::FEE_TYPES.count] }