Sha256: 81a097de4047dab131a204fdb4b1bf56c0472631e7d1c657c983a1fa4be2c682
Contents?: true
Size: 645 Bytes
Versions: 23
Compression:
Stored size: 645 Bytes
Contents
require 'httparty' require_relative 'base_adapter' module Gitlab module Triage module NetworkAdapters class TestAdapter < BaseAdapter def get(_token, url) results = case url when %r{\Ahttps://gitlab.com/v4/issues?per_page=100} [ { id: 1, title: 'First issue' } ] else [] end { more_pages: false, next_page_url: nil, results: results } end def post(token, url, body) # no-op in tests end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems