From 3195b0aab7116ba25d5ecae3a7f3917ed9761862 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 6 Nov 2020 12:44:35 +1100 Subject: [PATCH] fix: add missing params_hash_type? from Rack Fixes: https://github.com/pact-foundation/pact-support/issues/81#issuecomment-722132213 --- lib/pact/consumer_contract/query.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pact/consumer_contract/query.rb b/lib/pact/consumer_contract/query.rb index c02ec27..c29073e 100644 --- a/lib/pact/consumer_contract/query.rb +++ b/lib/pact/consumer_contract/query.rb @@ -105,6 +105,10 @@ def self.normalize_params(params, name, v) params end + def self.params_hash_type?(obj) + obj.is_a?(Hash) + end + def self.unescape(s, encoding = Encoding::UTF_8) URI.decode_www_form_component(s, encoding) end