Sha256: b6395d27c88c4be07333531bf5405622a878936f1a084bb031ba28a64c422528
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
FactoryGirl.define do factory :personal_account, class: Spree.user_class do email { generate(:random_email) } login { email } password 'secret' password_confirmation { password } account_type 'personal' cpf CPF.generate(true) rg '123' birth_date Date.today gender 'f' end factory :business_account, class: Spree.user_class do email { generate(:random_email) } login { email } password 'secret' password_confirmation { password } account_type 'business' cnpj CNPJ.generate(true) state_registry '123' contact 'some name' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_zaez_brazilian_fields-3.1.0 | lib/spree_zaez_brazilian_fields/factories.rb |
spree_zaez_brazilian_fields-3.0.1 | lib/spree_zaez_brazilian_fields/factories.rb |