diff options
Diffstat (limited to 'spec/bundler/support/artifice/compact_index_forbidden.rb')
-rw-r--r-- | spec/bundler/support/artifice/compact_index_forbidden.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/bundler/support/artifice/compact_index_forbidden.rb b/spec/bundler/support/artifice/compact_index_forbidden.rb new file mode 100644 index 0000000000..0a4dfdb2e8 --- /dev/null +++ b/spec/bundler/support/artifice/compact_index_forbidden.rb @@ -0,0 +1,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) |