diff options
Diffstat (limited to 'spec/support/artifice/compact_index_basic_authentication.rb')
-rw-r--r-- | spec/support/artifice/compact_index_basic_authentication.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/artifice/compact_index_basic_authentication.rb b/spec/support/artifice/compact_index_basic_authentication.rb index bffb5b9e2b..42522b4c55 100644 --- a/spec/support/artifice/compact_index_basic_authentication.rb +++ b/spec/support/artifice/compact_index_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 CompactIndexBasicAuthentication < CompactIndexAPI +class Artifice::CompactIndexBasicAuthentication < Artifice::CompactIndexAPI before do unless env["HTTP_AUTHORIZATION"] halt 401, "Authentication info not supplied" @@ -11,4 +11,4 @@ class CompactIndexBasicAuthentication < CompactIndexAPI end end -Artifice.activate_with(CompactIndexBasicAuthentication) +Artifice.activate_with(Artifice::CompactIndexBasicAuthentication) |