lib/pact/shared/request.rb in pact-support-0.6.1 vs lib/pact/shared/request.rb in pact-support-1.0.0
- old
+ new
@@ -14,10 +14,10 @@
attr_reader :method, :path, :headers, :body, :query, :options
def initialize(method, path, headers, body, query)
@method = method.to_s
- @path = path.respond_to?(:chomp) ? path.chomp('/') : path #TODO get rid of the chomp in v2
+ @path = path
@headers = Hash === headers ? Headers.new(headers) : headers # Could be a NullExpectation - TODO make this more elegant
@body = body
@query = is_unspecified?(query) ? query : Pact::Query.create(query)
end
\ No newline at end of file