Method: FlexMock#respond_to?

Defined in:
lib/flexmock/core.rb

#respond_to?(sym, *args) ⇒ Boolean

Override the built-in respond_to? to include the mocked methods.

Returns:

  • (Boolean)


164
165
166
# File 'lib/flexmock/core.rb', line 164

def respond_to?(sym, *args)
  super || (@expectations[sym] ? true : @ignore_missing)
end