# frozen_string_literal: true RSpec.shared_examples 'a GET request' do context 'for an existing resource' do it 'returns a 200 status and the requested resource(s)'do get(route, headers:) expect(response).to have_http_status(200) expect(response.body).to include_strings(expected_text) end end end