Sha256: 3eada8089277a403c6621a544a118b869b22507c7c828f710233eaeb262d55de

Contents?: true

Size: 1.52 KB

Versions: 10

Compression:

Stored size: 1.52 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('addresses')
      Spree::Sample.load_sample('zones')
      Spree::Sample.load_sample('payment_methods')
      Spree::Sample.load_sample('shipping_methods')
      Spree::Sample.load_sample('tax_categories')
      Spree::Sample.load_sample('tax_rates')
      Spree::Sample.load_sample('taxonomies')
      Spree::Sample.load_sample('promotions')

      Spree::Sample.load_sample('products')
      Spree::Sample.load_sample('taxons')
      Spree::Sample.load_sample('option_types')
      Spree::Sample.load_sample('option_values')
      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('orders')
      Spree::Sample.load_sample('adjustments')
      Spree::Sample.load_sample('payments')
      Spree::Sample.load_sample('reimbursements')
      Spree::Sample.load_sample('return_authorization_reasons')
      Spree::Sample.load_sample('stores')

      Spree::Sample.load_sample('cms_standard_pages')
      Spree::Sample.load_sample('cms_feature_pages')
      Spree::Sample.load_sample('cms_homepages')
      Spree::Sample.load_sample('cms_sections')
      Spree::Sample.load_sample('menus')
      Spree::Sample.load_sample('menu_items')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_sample-4.5.5 lib/spree_sample.rb
spree_sample-4.4.1 lib/spree_sample.rb
spree_sample-4.5.4 lib/spree_sample.rb
spree_sample-4.5.3 lib/spree_sample.rb
spree_sample-4.5.2 lib/spree_sample.rb
spree_sample-4.5.1 lib/spree_sample.rb
spree_sample-4.5.0 lib/spree_sample.rb
spree_sample-4.4.0 lib/spree_sample.rb
spree_sample-4.4.0.rc2 lib/spree_sample.rb
spree_sample-4.4.0.rc1 lib/spree_sample.rb