From 0124f71d75689ef8693087dd3c257b0e04d4dd44 Mon Sep 17 00:00:00 2001 From: Max Lincoln Date: Tue, 17 Feb 2015 15:48:54 -0500 Subject: [PATCH] Fix compatibility with latest addressable (keys are now strings, were symbols) --- lib/pacto/request_clause.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pacto/request_clause.rb b/lib/pacto/request_clause.rb index f237015..115fe09 100644 --- a/lib/pacto/request_clause.rb +++ b/lib/pacto/request_clause.rb @@ -27,7 +27,7 @@ def pattern def uri(values = {}) values ||= {} uri_template = pattern.uri_template - missing_keys = uri_template.keys - values.keys + missing_keys = uri_template.keys.map(&:to_sym) - values.keys.map(&:to_sym) values[:scheme] = 'http' if missing_keys.delete(:scheme) values[:server] = 'localhost' if missing_keys.delete(:server) logger.warn "Missing keys for building a complete URL: #{missing_keys.inspect}" unless missing_keys.empty?