Class: Mocktail::NoExplanationData
- Inherits:
-
T::Struct
- Object
- T::Struct
- Mocktail::NoExplanationData
- Extended by:
- T::Sig
- Includes:
- ExplanationData
- Defined in:
- lib/mocktail/value/no_explanation_data.rb,
lib/mocktail/sorbet/mocktail/value/no_explanation_data.rb
Instance Method Summary collapse
Instance Method Details
#calls ⇒ Object
8 9 10 |
# File 'lib/mocktail/value/no_explanation_data.rb', line 8 def calls raise Error.new("No calls have been recorded for #{thing.inspect}, because Mocktail doesn't know what it is.") end |
#stubbings ⇒ Object
12 13 14 |
# File 'lib/mocktail/value/no_explanation_data.rb', line 12 def stubbings raise Error.new("No stubbings exist on #{thing.inspect}, because Mocktail doesn't know what it is.") end |