```ruby
RSpec.shared_context 'shopify_mock' do
  require 'shopify_api'

  before :each do
    ActiveResource::Base.format = :json
    ShopifyAPI.constants.each do |const|
      const = "ShopifyAPI::#{const}".constantize
      const.format = :json if const.respond_to?(:format=)
    end

    ShopifyAPI::Base.clear_session
    ShopifyAPI::Base.site = 'https://this-is-my-test-shop.myshopify.com/admin'
    ShopifyAPI::Base.password = nil
    ShopifyAPI::Base.user = nil
  end

  def mock_request(file, endpoint, extension)
    url = "#{shopify_base_url}/#{endpoint}.#{extension}"
    json = read_file(file, extension)
    stub_request(:get, url)
      .with(headers: { 'Accept' => "application/#{extension}",
                       'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
                       'User-Agent' => 'ShopifyAPI/4.3.2 ActiveResource/4.1.0 Ruby/2.3.1' })
      .to_return(status: 200, body: json, headers: {})
  end

  def read_file(file, extension = 'json')
    File.open("#{File.dirname(__FILE__)}/../data/#{file}.#{extension}").read
  end

  def shopify_base_url
    return ShopifyAPI::Base.site unless ShopifyAPI::Base.site.to_s[-1] == '/'
    ShopifyAPI::Base.site = 'https://this-is-my-test-shop.myshopify.com/admin'
  end
end
```

Remove the expected headers from request stubbing
user
```ruby
RSpec.shared_context 'shopify_mock' do
  require 'shopify_api'

  before :each do
    ActiveResource::Base.format = :json
    ShopifyAPI.constants.each do |const|
      const = "ShopifyAPI::#{const}".constantize
      const.format = :json if const.respond_to?(:format=)
    end

    ShopifyAPI::Base.clear_session
    ShopifyAPI::Base.site = 'https://this-is-my-test-shop.myshopify.com/admin'
    ShopifyAPI::Base.password = nil
    ShopifyAPI::Base.user = nil
  end

  def mock_request(file, endpoint, extension)
    url = "#{shopify_base_url}/#{endpoint}.#{extension}"
    json = read_file(file, extension)
    stub_request(:get, url).to_return(status: 200, body: json, headers: {})
  end

  def read_file(file, extension = 'json')
    File.open("#{File.dirname(__FILE__)}/../data/#{file}.#{extension}").read
  end

  def shopify_base_url
    return ShopifyAPI::Base.site unless ShopifyAPI::Base.site.to_s[-1] == '/'
    ShopifyAPI::Base.site = 'https://this-is-my-test-shop.myshopify.com/admin'
  end
end
```
assistant