summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-09 14:23:00 -0600
committermo khan <mo@mokhan.ca>2025-06-09 14:23:00 -0600
commit3ce95b474d2ee6c770a17a02318a6e01d9844b21 (patch)
tree585e42abaf8ed8dc4ced07f1cb0e5e939b9a8873 /spec/support
parent7f945dcdd07121f0443545eec8c671faabb83999 (diff)
test: extract config for http variable
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/server.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/server.rb b/spec/support/server.rb
index 2fea6af..51d4ed8 100644
--- a/spec/support/server.rb
+++ b/spec/support/server.rb
@@ -1,6 +1,9 @@
# frozen_string_literal: true
RSpec.configure do |config|
+ config.add_setting :http
+ config.http = Net::Hippie::Client.new
+
config.add_setting :bind_addr
config.bind_addr = ENV.fetch("BIND_ADDR", "127.0.0.1:7878")