Sha256: 52e13fb609dcca7306090df0638739b2c0eea2064c2e78fdfe14913de0216cf1

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

# Extend your spec with this module if you want your spec to be able to move
# an order through the checkout process
module CheckoutInfrastructure
  def self.extended(base)
    base.before(:all) do
      create :country
      create :shipping_method
    end

    base.after(:all) do
      DatabaseCleaner.clean_with(:truncation)
    end
  end
end

RSpec.configure do |config|
  config.extend CheckoutInfrastructure, :checkout
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 spec/support/helpers/checkout_infrastructure.rb
solidus_subscriptions-2.0.1 spec/support/helpers/checkout_infrastructure.rb
solidus_subscriptions-2.0.0 spec/support/helpers/checkout_infrastructure.rb
solidus_subscriptions-1.1.0 spec/support/helpers/checkout_infrastructure.rb
solidus_subscriptions-1.0.1 spec/support/helpers/checkout_infrastructure.rb
solidus_subscriptions-1.0.0 spec/support/helpers/checkout_infrastructure.rb
solidus_subscriptions-1.0.0.rc1 spec/support/helpers/checkout_infrastructure.rb