Sha256: 6d0b9f89310ee3535be1024dd8e49511a46f3b20ccd8f2c7856eb67ed960f90e

Contents?: true

Size: 931 Bytes

Versions: 11

Compression:

Stored size: 931 Bytes

Contents

FactoryBot.define do
  factory :store, class: Spree::Store do
    sequence(:code)        { |i| "spree_#{i}" }
    name                   { 'Spree Test Store' }
    url                    { 'www.example.com' }
    mail_from_address      { 'no-reply@example.com' }
    customer_support_email { 'support@example.com' }
    new_order_notifications_email { 'store-owner@example.com' }
    default_currency       { 'USD' }
    supported_currencies   { 'USD,EUR,GBP' }
    default_locale         { 'en' }
    facebook               { 'spreecommerce' }
    twitter                { 'spreecommerce' }
    instagram              { 'spreecommerce' }

    trait :with_favicon do
      transient do
        filepath { Spree::Core::Engine.root.join('spec', 'fixtures', 'favicon.ico') }
        image_type { 'image/x-icon' }
      end

      favicon_image do
        Rack::Test::UploadedFile.new(filepath, image_type)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-4.3.3 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.4.1 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.3.2 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.4.0 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.4.0.rc2 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.3.1 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.4.0.rc1 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.3.0 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.3.0.rc3 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.3.0.rc2 lib/spree/testing_support/factories/store_factory.rb
spree_core-4.3.0.rc1 lib/spree/testing_support/factories/store_factory.rb