mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-22 22:06:43 +00:00
Fixes example group helpers spec with new 3.0 format
This commit is contained in:
parent
aa59c5ff91
commit
04564d933f
@ -179,7 +179,7 @@ module Rswag
|
|||||||
let(:api_metadata) { { response: {} } }
|
let(:api_metadata) { { response: {} } }
|
||||||
|
|
||||||
it "adds to the 'response' metadata" do
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ module Rswag
|
|||||||
|
|
||||||
it "adds to the 'response headers' metadata" do
|
it "adds to the 'response headers' metadata" do
|
||||||
expect(api_metadata[:response][:headers]).to match(
|
expect(api_metadata[:response][:headers]).to match(
|
||||||
'Date' => { type: 'string' }
|
'Date' => {schema: { type: 'string' }}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user