diff --git a/features/slate_documentation.feature b/features/slate_documentation.feature index 8eb557cf..87c8d317 100644 --- a/features/slate_documentation.feature +++ b/features/slate_documentation.feature @@ -203,7 +203,7 @@ Feature: Generate Slate documentation from test examples ```shell - curl "http://localhost:3000/orders" -X GET \ + curl -g "http://localhost:3000/orders" -X GET \ -H "Host: example.org" \ -H "Cookie: " """ diff --git a/lib/rspec_api_documentation/curl.rb b/lib/rspec_api_documentation/curl.rb index 257f0883..817c4f19 100644 --- a/lib/rspec_api_documentation/curl.rb +++ b/lib/rspec_api_documentation/curl.rb @@ -16,7 +16,7 @@ def post end def get - "curl \"#{url}#{get_data}\" -X GET #{headers}" + "curl -g \"#{url}#{get_data}\" -X GET #{headers}" end def head