Sha256: 171e7649c21b0122869bbc8398c01e656b442e0e6fd1f6a5466b4778a90116cc

Contents?: true

Size: 1.07 KB

Versions: 54

Compression:

Stored size: 1.07 KB

Contents

require 'spree_core'
require 'spree/sample'

module SpreeSample
  class Engine < Rails::Engine
    engine_name 'spree_sample'

    # Needs to be here so we can access it inside the tests
    def self.load_samples
      Spree::Sample.load_sample('payment_methods')
      Spree::Sample.load_sample('shipping_categories')
      Spree::Sample.load_sample('shipping_methods')
      Spree::Sample.load_sample('tax_categories')
      Spree::Sample.load_sample('tax_rates')

      Spree::Sample.load_sample('products')
      Spree::Sample.load_sample('taxons')
      Spree::Sample.load_sample('option_values')
      Spree::Sample.load_sample('product_option_types')
      Spree::Sample.load_sample('product_properties')
      Spree::Sample.load_sample('prototypes')
      Spree::Sample.load_sample('variants')
      Spree::Sample.load_sample('stock')
      Spree::Sample.load_sample('assets')

      Spree::Sample.load_sample('orders')
      Spree::Sample.load_sample('adjustments')
      Spree::Sample.load_sample('payments')
      Spree::Sample.load_sample('store_credit_categories')
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
spree_sample-3.6.1 lib/spree_sample.rb
spree_sample-3.6.0 lib/spree_sample.rb
spree_sample-3.5.0 lib/spree_sample.rb
spree_sample-3.6.0.rc1 lib/spree_sample.rb
spree_sample-3.5.0.rc2 lib/spree_sample.rb
spree_sample-3.5.0.rc1 lib/spree_sample.rb
spree_sample-3.4.5 lib/spree_sample.rb
spree_sample-3.4.4 lib/spree_sample.rb
spree_sample-3.4.3 lib/spree_sample.rb
spree_sample-3.4.2 lib/spree_sample.rb
spree_sample-3.4.1 lib/spree_sample.rb
spree_sample-3.4.0 lib/spree_sample.rb
spree_sample-3.4.0.rc2 lib/spree_sample.rb
spree_sample-3.4.0.rc1 lib/spree_sample.rb