summaryrefslogtreecommitdiff
path: root/spec/bundler/support/artifice/endpoint_creds_diff_host.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/support/artifice/endpoint_creds_diff_host.rb')
-rw-r--r--spec/bundler/support/artifice/endpoint_creds_diff_host.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/bundler/support/artifice/endpoint_creds_diff_host.rb b/spec/bundler/support/artifice/endpoint_creds_diff_host.rb
index cd152848fe..925954b12d 100644
--- a/spec/bundler/support/artifice/endpoint_creds_diff_host.rb
+++ b/spec/bundler/support/artifice/endpoint_creds_diff_host.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
require File.expand_path("../endpoint", __FILE__)
Artifice.deactivate
@@ -10,7 +11,7 @@ class EndpointCredsDiffHost < Endpoint
end
def authorized?
- auth.provided? && auth.basic? && auth.credentials && auth.credentials == %w(user pass)
+ auth.provided? && auth.basic? && auth.credentials && auth.credentials == %w[user pass]
end
def protected!