gitlab-org--gitlab-foss/spec/support/shared_contexts/json_response_shared_contex...

6 lines
135 B
Ruby

# frozen_string_literal: true
RSpec.shared_context 'JSON response' do
let(:json_response) { Gitlab::Json.parse(response.body) }
end