Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Fix compatibility with latest addressable (keys are now strings, were…
Browse files Browse the repository at this point in the history
… symbols)
  • Loading branch information
maxlinc committed Feb 17, 2015
1 parent 1a8b508 commit 0124f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pacto/request_clause.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 0124f71

Please sign in to comment.