summaryrefslogtreecommitdiff
path: root/spec/bundler/support/artifice/endpoint_host_redirect.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/support/artifice/endpoint_host_redirect.rb')
-rw-r--r--spec/bundler/support/artifice/endpoint_host_redirect.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/bundler/support/artifice/endpoint_host_redirect.rb b/spec/bundler/support/artifice/endpoint_host_redirect.rb
deleted file mode 100644
index cda5664be2..0000000000
--- a/spec/bundler/support/artifice/endpoint_host_redirect.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# frozen_string_literal: true
-
-require File.expand_path("../endpoint", __FILE__)
-
-Artifice.deactivate
-
-class EndpointHostRedirect < Endpoint
- get "/fetch/actual/gem/:id", :host_name => "localgemserver.test" do
- redirect "http://bundler.localgemserver.test#{request.path_info}"
- end
-
- get "/api/v1/dependencies" do
- status 404
- end
-end
-
-Artifice.activate_with(EndpointHostRedirect)