lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.0.61 vs lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.0.62
- old
+ new
@@ -140,9 +140,10 @@
# @param_value [method] REST method (get, post, etc)
def make_request(override_parameters)
test_values = override_parameters
test_values[:params] ||= {}
test_values[:suburl] = test_values[:suburl].to_s if test_values[:suburl]
+ test_values[:params][:params] = test_values[:q] if test_values[:q] # Use q for query parameters. Nested :params is ugly and long
@resource_used = test_values[:suburl] ? @resource[test_values[:suburl]] : @resource
begin
response = case test_values[:method]
\ No newline at end of file