Skip to content

Commit 3195b0a

Browse files
committed
fix: add missing params_hash_type? from Rack
Fixes: pact-foundation#81 (comment)
1 parent e7ed5de commit 3195b0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/pact/consumer_contract/query.rb

+4
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ def self.normalize_params(params, name, v)
105105
params
106106
end
107107

108+
def self.params_hash_type?(obj)
109+
obj.is_a?(Hash)
110+
end
111+
108112
def self.unescape(s, encoding = Encoding::UTF_8)
109113
URI.decode_www_form_component(s, encoding)
110114
end

0 commit comments

Comments
 (0)