debian-mirror-gitlab/spec/support/json_response_helpers.rb

10 lines
268 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
shared_context 'JSON response' do
let(:json_response) { JSON.parse(response.body) }
end
RSpec.configure do |config|
2017-09-10 17:25:29 +05:30
config.include_context 'JSON response'
2017-08-17 22:00:37 +05:30
config.include_context 'JSON response', type: :request
config.include_context 'JSON response', :api
end