Class: Fbe::Graph::Fake

Inherits:
Object
  • Object
show all
Defined in:
lib/fbe/github_graph.rb

Overview

Fake GitHub GraphQL client, for tests.

Instance Method Summary collapse

Instance Method Details

#query(_query) ⇒ Object



123
124
125
# File 'lib/fbe/github_graph.rb', line 123

def query(_query)
  {}
end

#resolved_conversations(owner, name, _number) ⇒ Object



127
128
129
130
131
132
133
134
# File 'lib/fbe/github_graph.rb', line 127

def resolved_conversations(owner, name, _number)
  data = {
    zerocracy_baza: [
      conversation('PRRT_kwDOK2_4A85BHZAR')
    ]
  }
  data[:"#{owner}_#{name}"] || []
end