debian-mirror-gitlab/spec/support/json_response_helpers.rb
2017-08-17 22:00:37 +05:30

9 lines
287 B
Ruby

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