summaryrefslogtreecommitdiff
path: root/spec/bundler/support/artifice/endpoint_500.rb
blob: b1ed1964c83d0e5fd6872589eb5f3a639ee1b768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require_relative "../path"

$LOAD_PATH.unshift(*Dir[Spec::Path.base_system_gem_path.join("gems/{mustermann,rack,tilt,sinatra,ruby2_keywords,base64}-*/lib")].map(&:to_s))

require "sinatra/base"

class Endpoint500 < Sinatra::Base
  before do
    halt 500
  end
end

require_relative "helpers/artifice"

Artifice.activate_with(Endpoint500)