Sha256: fea312b6a5052ff1c2cae230e1635ce8d971728cf9e1451d570ed5252565e75b

Contents?: true

Size: 797 Bytes

Versions: 10

Compression:

Stored size: 797 Bytes

Contents

FactoryGirl.define do
  factory :customer_vault_corporation, class: ::Dorsale::CustomerVault::Corporation do
    activity_type { create(:customer_vault_activity_type)             }
    origin        { create(:customer_vault_origin)                    }
    name          { "#{Faker::Company.name} #{Faker::Company.suffix}" }
    short_name    { "SN"                                              }
    email         { Faker::Internet.email                             }
    phone         { "06 xx xx xx xx"                                  }
    fax           { "09 xx xx xx xx"                                  }
    www           { Faker::Internet.url                               }

    after(:create) do |corporation|
      create(:dorsale_address, addressable: corporation)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dorsale-3.8.1 spec/factories/customer_vault_corporations.rb
dorsale-3.8.0 spec/factories/customer_vault_corporations.rb
dorsale-3.7.8 spec/factories/customer_vault_corporations.rb
dorsale-3.7.7 spec/factories/customer_vault_corporations.rb
dorsale-3.7.6 spec/factories/customer_vault_corporations.rb
dorsale-3.7.5 spec/factories/customer_vault_corporations.rb
dorsale-3.7.4 spec/factories/customer_vault_corporations.rb
dorsale-3.7.2 spec/factories/customer_vault_corporations.rb
dorsale-3.7.1 spec/factories/customer_vault_corporations.rb
dorsale-3.7.0 spec/factories/customer_vault_corporations.rb