blob: e8d2ef2d7f07b1dd2ddd7926e8d3b815f94cf30c (
plain)
1
2
3
4
5
6
7
8
9
|
shared_context 'JSON response' do
let(:json_response) { JSON.parse(response.body) }
end
RSpec.configure do |config|
config.include_context 'JSON response', type: :controller
config.include_context 'JSON response', type: :request
config.include_context 'JSON response', :api
end
|