lib/jets/spec_helpers.rb in jets-1.7.1 vs lib/jets/spec_helpers.rb in jets-1.7.2

- old
+ new

@@ -30,9 +30,14 @@ request.method = method.to_sym request.path = path request.headers.deep_merge!(params.delete(:headers) || {}) request.params.body_params = params.delete(:params) || params || {} + + request.params.query_params = params.delete(:query) + request.params.query_params ||= params if request.method == :get + request.params.query_params ||= {} + request.params.path_params = params @response = request.dispatch! end \ No newline at end of file