Skip to content

Commit

Permalink
test: Explicitly require CGI
Browse files Browse the repository at this point in the history
I am observing the same behavior in this test as documented in
pact-foundation/pact-support#29; applying the
same fix also fixes it here.
  • Loading branch information
matoro authored and ixti committed Jun 20, 2022
1 parent 90432b0 commit 85f7ddb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/lib/http/client_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# coding: utf-8
# frozen_string_literal: true

require "cgi"
require "logger"

require "support/http_handling_shared"
require "support/dummy_server"
require "support/ssl_helper"
require "logger"

RSpec.describe HTTP::Client do
run_server(:dummy) { DummyServer.new }
Expand Down
2 changes: 2 additions & 0 deletions spec/support/dummy_server/servlet.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# encoding: UTF-8
# frozen_string_literal: true

require "cgi"

class DummyServer < WEBrick::HTTPServer
class Servlet < WEBrick::HTTPServlet::AbstractServlet # rubocop:disable Metrics/ClassLength
def self.sockets
Expand Down

0 comments on commit 85f7ddb

Please sign in to comment.