Sha256: 0e21330bcbba91034c700362b6a6f7d050b7d7f52d3d7bd3cda3188aaa70e1df
Contents?: true
Size: 1.08 KB
Versions: 14
Compression:
Stored size: 1.08 KB
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' } meta_description { 'Sample store description.' } digital_asset_authorized_clicks { 5 } digital_asset_authorized_days { 7 } 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 create(:favicon_image, attachment: Rack::Test::UploadedFile.new(filepath, image_type)) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems