From 6783ce338f9202aa880fe48ef0158693c36a759b Mon Sep 17 00:00:00 2001 From: Anton Berkutov Date: Tue, 12 Sep 2023 17:32:37 +0300 Subject: [PATCH] fix: requests nil error --- lib/rspec_api_documentation/example.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rspec_api_documentation/example.rb b/lib/rspec_api_documentation/example.rb index ba8f0ad7..c66136bb 100644 --- a/lib/rspec_api_documentation/example.rb +++ b/lib/rspec_api_documentation/example.rb @@ -55,7 +55,7 @@ def explanation end def requests - filter_headers(metadata[:requests]) || [] + filter_headers(metadata.fetch(:requests, [])) end private