mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
yield entire response instead of only the body
This commit is contained in:
@@ -45,8 +45,8 @@ module Rswag
|
||||
|
||||
context "'block' provided" do
|
||||
let(:call) do
|
||||
subject.validate!(response) do |body|
|
||||
data = JSON.parse(body)
|
||||
subject.validate!(response) do |response|
|
||||
data = JSON.parse(response.body)
|
||||
expect(data['text']).to eq('Some comment')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user