Sha256: da026aa35a0d7ca58fef475ae7cd05b7e636ccd0a7486841dfd58a9db22e4769

Contents?: true

Size: 1.01 KB

Versions: 73

Compression:

Stored size: 1.01 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")
    end
  end
end

Version data entries

73 entries across 73 versions & 2 rubygems

Version Path
spree_sample-3.0.10 lib/spree_sample.rb
spree_sample-3.0.9 lib/spree_sample.rb
spree_sample-3.0.8 lib/spree_sample.rb
spree_sample-3.0.7 lib/spree_sample.rb
spree_sample-3.0.6.1 lib/spree_sample.rb
spree_sample-3.0.6 lib/spree_sample.rb
spree_sample-3.0.5 lib/spree_sample.rb
spree_sample-3.0.4 lib/spree_sample.rb
spree_sample-2.4.10 lib/spree_sample.rb
spree_sample-2.3.13 lib/spree_sample.rb
spree_sample-2.2.14 lib/spree_sample.rb
spree_china_sample-3.0.3.beta lib/spree_sample.rb
spree_china_sample-3.0.0 lib/spree_sample.rb
spree_sample-3.0.3 lib/spree_sample.rb
spree_sample-2.4.9 lib/spree_sample.rb
spree_sample-2.3.12 lib/spree_sample.rb
spree_sample-2.2.13 lib/spree_sample.rb
spree_sample-3.0.2 lib/spree_sample.rb
spree_sample-2.4.8 lib/spree_sample.rb
spree_sample-2.3.11 lib/spree_sample.rb