From 23dd3296155771be2fd52c26ed5bc283e8d8c66d Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Wed, 5 Sep 2018 13:04:21 -0400 Subject: [PATCH] Don't group routes that don't have the same route name --- lib/rspec_api_documentation/views/api_blueprint_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rspec_api_documentation/views/api_blueprint_index.rb b/lib/rspec_api_documentation/views/api_blueprint_index.rb index 5a20ba88..3c36082a 100644 --- a/lib/rspec_api_documentation/views/api_blueprint_index.rb +++ b/lib/rspec_api_documentation/views/api_blueprint_index.rb @@ -8,7 +8,7 @@ def initialize(index, configuration) def sections super.map do |section| - routes = section[:examples].group_by { |e| "#{e.route_uri}#{e.route_optionals}" }.map do |route, examples| + routes = section[:examples].group_by { |e| "#{e.route_uri}#{e.route_optionals}#{e.route_name}" }.map do |route, examples| attrs = fields(:attributes, examples) params = fields(:parameters, examples)