summaryrefslogtreecommitdiff
path: root/spec/bundler/support/artifice/endpoint_api_forbidden.rb
blob: edc2463424230c044bdd0132374c9f4ad5b7769e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require_relative "endpoint"

Artifice.deactivate

class EndpointApiForbidden < Endpoint
  get "/api/v1/dependencies" do
    halt 403
  end
end

Artifice.activate_with(EndpointApiForbidden)