summaryrefslogtreecommitdiff
path: root/spec/bundler/support/artifice/compact_index_forbidden.rb
blob: 0a4dfdb2e831764c9af182ab0182bb0ac279078d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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)