lib/pact/shared/request.rb in pact-support-0.0.2 vs lib/pact/shared/request.rb in pact-support-0.0.3
- old
+ new
@@ -1,9 +1,9 @@
require 'pact/matchers'
require 'pact/symbolize_keys'
require 'pact/consumer_contract/headers'
-require 'pact/consumer_contract/query_string'
+require 'pact/consumer_contract/query'
module Pact
module Request
@@ -17,10 +17,10 @@
def initialize(method, path, headers, body, query)
@method = method.to_s
@path = path.chomp('/')
@headers = Hash === headers ? Headers.new(headers) : headers # Could be a NullExpectation - TODO make this more elegant
@body = body
- @query = is_unspecified?(query) ? query : Pact::QueryString.new(query)
+ @query = is_unspecified?(query) ? query : Pact::Query.create(query)
end
def to_json(options = {})
as_json.to_json(options)
end
\ No newline at end of file