summaryrefslogtreecommitdiff
path: root/spec/initializers/rest-client-hostname_override_spec.rb
blob: f3823c9d3588067112d3add0edcb38c31c914d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

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