Class: Omnitest::Skeptic::Spy
- Inherits:
-
Object
- Object
- Omnitest::Skeptic::Spy
- Defined in:
- lib/omnitest/skeptic/spy.rb
Overview
# @abstract
Class Method Summary collapse
Instance Method Summary collapse
- #call(_scenario) ⇒ Object
-
#initialize(app, opts = {}) ⇒ Spy
constructor
A new instance of Spy.
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 |
.reports ⇒ Object
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 |