From 04564d933ffa43a8f59cf3b51d655fea79961409 Mon Sep 17 00:00:00 2001 From: Jay Danielian Date: Thu, 18 Jul 2019 22:19:10 -0400 Subject: [PATCH] Fixes example group helpers spec with new 3.0 format --- rswag-specs/spec/rswag/specs/example_group_helpers_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rswag-specs/spec/rswag/specs/example_group_helpers_spec.rb b/rswag-specs/spec/rswag/specs/example_group_helpers_spec.rb index 8b56735..e2be0aa 100644 --- a/rswag-specs/spec/rswag/specs/example_group_helpers_spec.rb +++ b/rswag-specs/spec/rswag/specs/example_group_helpers_spec.rb @@ -179,7 +179,7 @@ module Rswag let(:api_metadata) { { response: {} } } it "adds to the 'response' metadata" do - expect(api_metadata[:response][:schema]).to match(type: 'object') + expect(api_metadata[:response][:content]['application/json'][:schema]).to match(type: 'object') end end @@ -189,7 +189,7 @@ module Rswag it "adds to the 'response headers' metadata" do expect(api_metadata[:response][:headers]).to match( - 'Date' => { type: 'string' } + 'Date' => {schema: { type: 'string' }} ) end end