lib/pacto/uri.rb in pacto-0.3.1 vs lib/pacto/uri.rb in pacto-0.4.0.rc1

- old
+ new

@@ -1,9 +1,10 @@ +# -*- encoding : utf-8 -*- module Pacto class URI def self.for(host, path, params = {}) Addressable::URI.heuristic_parse("#{host}#{path}").tap do |uri| - uri.query_values = params unless params.empty? + uri.query_values = params unless params.nil? || params.empty? end end end end