2017-03-08 18:41:02 -05:00
|
|
|
shared_context 'JSON response' do
|
|
|
|
let(:json_response) { JSON.parse(response.body) }
|
|
|
|
end
|
|
|
|
|
|
|
|
RSpec.configure do |config|
|
2017-06-29 00:13:10 -04:00
|
|
|
config.include_context 'JSON response'
|
2017-03-08 18:41:02 -05:00
|
|
|
config.include_context 'JSON response', type: :request
|
|
|
|
config.include_context 'JSON response', :api
|
|
|
|
end
|