Sha256: 8fa5a340648222981471025a6d8df800dfd0fac3ee4fa161c5f98d9578bcf41d

Contents?: true

Size: 322 Bytes

Versions: 15

Compression:

Stored size: 322 Bytes

Contents

module ConfigurationHelper
  def stub_configuration(options)
    allow(SolidusBactracs.configuration).to receive_messages(options)

    if options[:capture_at_notification]
      stub_spree_preferences(require_payment_to_ship: false)
    end
  end
end

RSpec.configure do |config|
  config.include ConfigurationHelper
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
solidus_bactracs-4.0.1 spec/support/configuration_helper.rb
solidus_bactracs-4.0.0 spec/support/configuration_helper.rb
solidus_bactracs-3.5.2 spec/support/configuration_helper.rb
solidus_bactracs-3.5.1 spec/support/configuration_helper.rb
solidus_bactracs-3.5.0 spec/support/configuration_helper.rb
solidus_bactracs-3.4.0 spec/support/configuration_helper.rb
solidus_bactracs-3.3.2 spec/support/configuration_helper.rb
solidus_bactracs-3.3.1 spec/support/configuration_helper.rb
solidus_bactracs-3.3.0 spec/support/configuration_helper.rb
solidus_bactracs-3.2.2 spec/support/configuration_helper.rb
solidus_bactracs-3.2.1 spec/support/configuration_helper.rb
solidus_bactracs-3.2.0 spec/support/configuration_helper.rb
solidus_bactracs-3.1.2 spec/support/configuration_helper.rb
solidus_bactracs-3.1.1 spec/support/configuration_helper.rb
solidus_bactracs-3.1.0 spec/support/configuration_helper.rb