Class: Mocktail::NoExplanationData

Inherits:
T::Struct
  • Object
show all
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

#callsObject

Raises:



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

#stubbingsObject

Raises:



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