Sha256: bd4ddb54ee28bd5ad711e3c5c9914a1004543c1a3dd9835d1b633726df1cf359

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

FactoryBot.define do
  factory :vendor, class: Spree::Vendor do
    name { FFaker::Company.name }
    about_us { 'About us...' }
    contact_us { 'Contact us...' }

    factory :active_vendor do
      name { 'Active vendor' }
      state { :active }
    end

    factory :active_vendor_list do
      name { "#{FFaker::Company.name} #{FFaker::Company.suffix }" }
      state { :active }
    end


    factory :pending_vendor do
      name { 'Pending vendor' }
      state { :pending }
    end

    factory :blocked_vendor do
      name { 'Blocked vendor' }
      state { :blocked }
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spree_multi_vendor-2.5.0 spec/factories/spree/vendor_factory.rb
spree_multi_vendor-2.4.1 spec/factories/spree/vendor_factory.rb
atkhayar-dev-spree-multi-vendor-0.0.0 spec/factories/spree/vendor_factory.rb
spree_multi_vendor-2.4.0 spec/factories/spree/vendor_factory.rb
spree_multi_vendor-2.3.0 spec/factories/spree/vendor_factory.rb