yield entire response instead of only the body

This commit is contained in:
Horia Radu
2017-04-29 21:17:53 +03:00
parent 37f86f6d94
commit f195c82759
3 changed files with 5 additions and 6 deletions

View File

@@ -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