Class: Omnitest::Skeptic::Spy

Inherits:
Object
  • Object
show all
Defined in:
lib/omnitest/skeptic/spy.rb

Overview

# @abstract

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, opts = {}) ⇒ Spy

Returns a new instance of Spy.



5
6
7
8
# File 'lib/omnitest/skeptic/spy.rb', line 5

def initialize(app, opts = {})
  @app = app
  @opts = opts
end

Class Method Details

.report(type, report_class) ⇒ Object



18
19
20
# File 'lib/omnitest/skeptic/spy.rb', line 18

def self.report(type, report_class)
  reports[type] = report_class
end

.reportsObject



14
15
16
# File 'lib/omnitest/skeptic/spy.rb', line 14

def self.reports
  @reports ||= {}
end

Instance Method Details

#call(_scenario) ⇒ Object



10
11
12
# File 'lib/omnitest/skeptic/spy.rb', line 10

def call(_scenario)
  fail NotImplementedError, 'Subclass must implement #call'
end