summaryrefslogtreecommitdiff
path: root/spec/support/artifice/compact_index_strict_basic_authentication.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/artifice/compact_index_strict_basic_authentication.rb')
-rw-r--r--spec/support/artifice/compact_index_strict_basic_authentication.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/artifice/compact_index_strict_basic_authentication.rb b/spec/support/artifice/compact_index_strict_basic_authentication.rb
index 49a072d2b9..fa209deba2 100644
--- a/spec/support/artifice/compact_index_strict_basic_authentication.rb
+++ b/spec/support/artifice/compact_index_strict_basic_authentication.rb
@@ -1,9 +1,9 @@
# frozen_string_literal: true
-require File.expand_path("../compact_index", __FILE__)
+require File.expand_path("../compact_index_api", __FILE__)
Artifice.deactivate
-class CompactIndexStrictBasicAuthentication < CompactIndexAPI
+class Artifice::CompactIndexStrictBasicAuthentication < Artifice::CompactIndexAPI
before do
unless env["HTTP_AUTHORIZATION"]
halt 401, "Authentication info not supplied"
@@ -16,4 +16,4 @@ class CompactIndexStrictBasicAuthentication < CompactIndexAPI
end
end
-Artifice.activate_with(CompactIndexStrictBasicAuthentication)
+Artifice.activate_with(Artifice::CompactIndexStrictBasicAuthentication)