Class | FlexMock::MockContainerHelper |
In: |
lib/flexmock/mock_container.rb
|
Parent: | Object |
################################################################# Helper methods for mock containers. MockContainer is a module that is designed to be mixed into other classes, particularly testing framework test cases. Since we don‘t want to pollute the method namespace of the class that mixes in MockContainer, a number of MockContainer methods were moved into ContainerHelper to to isoloate the names.
METHOD_NAME_RE | = | /^([A-Za-z_][A-Za-z0-9_]*[=!?]?|\[\]=?||\*\*|<<|>>|<=>|[<>=]=|=~|===|[-+]@|[-+\*\/%&^|<>~`])$/ |
Create a PartialMockProxy for the given object. Use name as the name of the mock object.