aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/support/artifice/compact_index_forbidden.rb
blob: b25eea94e789e656f0079b28fed8edaa155c6606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true
require File.expand_path("../compact_index", __FILE__)

Artifice.deactivate

class CompactIndexForbidden < CompactIndexAPI
  get "/versions" do
    halt 403
  end
end

Artifice.activate_with(CompactIndexForbidden)