debian-mirror-gitlab/spec/support/shared_contexts/json_response_shared_context.rb

6 lines
127 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2020-03-13 15:44:24 +05:30
RSpec.shared_context 'JSON response' do
2018-10-15 14:42:47 +05:30
let(:json_response) { JSON.parse(response.body) }
end