Class FlexMock::ExplicitNeeded
In: lib/flexmock/explicit_needed.rb
Parent: Object

Expectations on mocks with a base class can only be defined on methods supported by the base class. Attempting to add an stub to a method not defined on the base class will cause the expectation to be wrapped in an ExplicitNeeded wrapper. The wrapper will throw an exception unless the explicit method is immediately called on the expectation.

Methods

Public Class methods

Public Instance methods

[Validate]