Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rest-client-hostname_override_spec.rb « initializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 187f18a6b1d754859a4d971ae0f8d6b719c2235c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'rest-client dns rebinding protection' do
  it_behaves_like 'a request using Gitlab::UrlBlocker' do
    let(:http_method) { :get }
    let(:url_blocked_error_class) { ArgumentError }

    def make_request(uri)
      RestClient.get(uri)
    end
  end
end