From 7e74ea8a3738a76b3865d3cadae04a7cd89c6af5 Mon Sep 17 00:00:00 2001 From: karunvir singh Date: Wed, 29 May 2019 14:45:56 -0400 Subject: [PATCH] we can update the host in the path in the request builder --- lib/rspec/rails/swagger/request_builder.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rspec/rails/swagger/request_builder.rb b/lib/rspec/rails/swagger/request_builder.rb index 7f4c074..0b8b196 100644 --- a/lib/rspec/rails/swagger/request_builder.rb +++ b/lib/rspec/rails/swagger/request_builder.rb @@ -80,6 +80,8 @@ def env end def path + instance.host!(document[:host]) if document[:host].present? + base_path = document[:basePath] || '' # Find params in the path and replace them with values defined in # in the example group.