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

@@ -108,7 +108,7 @@ If you want to do additional validation on the response, pass a block to the __r
```ruby
response '201', 'blog created' do
run_test! do |response|
data = JSON.parse(response)
data = JSON.parse(response.body)
expect(data['title']).to eq('foo')
end
end