debian-mirror-gitlab/spec/initializers/rest-client-hostname_override_spec.rb
2020-08-09 17:44:08 +05:30

14 lines
323 B
Ruby

# 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