mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-25 17:08:32 +00:00
15 lines
332 B
Ruby
15 lines
332 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe 'rest-client dns rebinding protection' do
|
|
it_behaves_like 'a request using Gitlab::HTTP_V2::UrlBlocker' do
|
|
let(:http_method) { :get }
|
|
let(:url_blocked_error_class) { ArgumentError }
|
|
|
|
def make_request(uri)
|
|
RestClient.get(uri)
|
|
end
|
|
end
|
|
end
|