Welcome to mirror list, hosted at ThFree Co, Russian Federation.

json_response_helpers.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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