From 3ec5be5fdea23e9a6b6a71b57efe1828907c2382 Mon Sep 17 00:00:00 2001 From: Maarten Jacobs Date: Tue, 19 Jul 2016 23:14:53 +0200 Subject: [PATCH] escape given query_strings i.e. `get "/api/v1/find?query=:my_query"` should escape `:my_query` --- lib/rspec_api_documentation/dsl/endpoint.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rspec_api_documentation/dsl/endpoint.rb b/lib/rspec_api_documentation/dsl/endpoint.rb index dcf6523c..a8366b0b 100644 --- a/lib/rspec_api_documentation/dsl/endpoint.rb +++ b/lib/rspec_api_documentation/dsl/endpoint.rb @@ -112,9 +112,9 @@ def path if extra_params.keys.include?($1) delete_extra_param($1) elsif respond_to?($1) - send($1) + escape send($1) else - match + escape match end end end