ContextClass
- Namespace
- Ancestors
Context in which expectations blocks are evaluated. Plug-ins may add private methods to this class to make them available to expectations blocks.
Constructor
initialize{ |expectExpect| … }#⚙
Sets up a context in which the given block will be passed each expect block found in the expectations blocks evaluated in this context via #instance_eval.
Instance Methods
expect(expected::Object, &blockProc)selfprivate#⚙
Sets up an expect block, expecting expected and evaluating block for the actual result, then passes it to the block given to the constructor.
- See Also
resultActualprivate#⚙
Returns a result wrapper for explicit query expectations.
literal(expectedObject)Literalprivate#⚙
Returns a literal expected value for expected.
mock(methods)Mock::Objectprivate#⚙
Returns a mock object set up with methods.
without_argumentsMock::Method::Arguments::Noneprivate#⚙
Returns an object representing “without arguments” for mock argument expectations.
stub(methods)Stub::Objectprivate#⚙
Returns a stub object set up with methods.
output(stringString)Outputprivate#⚙
Returns an expected output wrapper around string.
warning(stringString)Outputprivate#⚙
Returns an expected warning wrapper around string.