Class: Fbe::Graph::Fake
- Inherits:
-
Object
- Object
- Fbe::Graph::Fake
- Defined in:
- lib/fbe/github_graph.rb
Overview
Fake GitHub GraphQL client, for tests.
Instance Method Summary collapse
Instance Method Details
#query(_query) ⇒ Object
125 126 127 |
# File 'lib/fbe/github_graph.rb', line 125 def query(_query) {} end |
#resolved_conversations(owner, name, _number) ⇒ Object
129 130 131 132 133 134 135 136 |
# File 'lib/fbe/github_graph.rb', line 129 def resolved_conversations(owner, name, _number) data = { zerocracy_baza: [ conversation('PRRT_kwDOK2_4A85BHZAR') ] } data[:"#{owner}_#{name}"] || [] end |