# frozen_string_literal: true

shared_context 'request_shared_context' do
  let(:parsed_response) { JSON.parse(response.body) }
  let(:invalid_uuid) { '00000000-0000-0000-0000-000000000000' }

  let(:base_headers) do
    {
      'Content-Type' => 'application/json',
      'Accept'       => 'application/vnd.ebookstore.v1+json'
    }
  end

  let(:request_body) do
    {
      data: {
        type: entity_type,
        attributes: attributes
      }
    }
  end
end
