Merge pull request #4896 from Matt-Yorkley/3-0-cc_type

[Spree 2.1] Add missing :cc_type attribute to default :credit_card factory
This commit is contained in:
Pau Pérez Fabregat
2020-03-03 10:43:18 +01:00
committed by GitHub

View File

@@ -164,6 +164,10 @@ FactoryBot.modify do
country { Spree::Country.find_by name: 'Australia' || Spree::Country.first }
end
factory :credit_card do
cc_type 'visa'
end
factory :payment do
transient do
distributor {