module GdsApi::TestHelpers::PublishingApi
def stub_default_publishing_api_path_reservation
def stub_default_publishing_api_path_reservation stub_request(:put, %r[\A#{PUBLISHING_API_ENDPOINT}/paths/]).to_return { |request| base_path = request.uri.path.sub(%r{\A/paths/}, "") { status: 200, headers: { content_type: "application/json" }, body: publishing_api_path_data_for(base_path).to_json } } end