Sha256: 2604ed70dbac5e66e69da3cdc1c575e8c513d15fd454ef6afeae93e10a3f9cec

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

# frozen_string_literal: true

# Stub requests to Drip API
RSpec.configure do |config|
  config.before(:each) do
    response = Drip::Response.new(200, {
                                    "request_id": "990c99a7-5cba-42e8-8f36-aec3419186ef"
                                  })
    allow_any_instance_of(Drip::Client).to receive(:create_cart_activity_event).and_return(response)
    allow_any_instance_of(Drip::Client).to receive(:create_order_activity_event).and_return(response)
    allow_any_instance_of(Drip::Client).to receive(:create_product_activity_event).and_return(response)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_drip-0.1.0 spec/support/stub_drip_responses.rb
solidus_drip-0.0.1 spec/support/stub_drip_responses.rb