Sha256: 33d4dd86757abfc038ea5741eb551b49b93b464ee749d546d7eb235ff76be3e9

Contents?: true

Size: 323 Bytes

Versions: 8

Compression:

Stored size: 323 Bytes

Contents

module ConfigurationHelper
  def stub_configuration(options)
    allow(SolidusBacktracs.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

8 entries across 8 versions & 2 rubygems

Version Path
solidus_bactracs-3.0.0 spec/support/configuration_helper.rb
solidus_backtracs-2.2.6 spec/support/configuration_helper.rb
solidus_backtracs-2.2.5 spec/support/configuration_helper.rb
solidus_backtracs-2.2.4 spec/support/configuration_helper.rb
solidus_backtracs-2.2.3 spec/support/configuration_helper.rb
solidus_backtracs-2.2.2 spec/support/configuration_helper.rb
solidus_backtracs-2.2.1 spec/support/configuration_helper.rb
solidus_backtracs-2.2.0 spec/support/configuration_helper.rb