Parent

Methods

Included Modules

Files

Caricature::ExpectationBuilder

Constructs the expecation object. Used as a boundary between the definition and usage of the expectation

Public Class Methods

new(method_name) click to toggle source

initialises a new instance of the expectation builder this builder is passed into the block to allow only certain operations in the block.

     # File lib/caricature/expectation.rb, line 163
163:     def initialize(method_name)
164:       @method_name, @return_value, @super, @block, @error_args, @args, @any_args, @callback = 
165:               method_name, nil, nil, nil, nil, [], true, nil
166:     end

Public Instance Methods

build() click to toggle source

build up the expectation with the provided arguments

     # File lib/caricature/expectation.rb, line 171
171:     def build
172:       Expectation.new @method_name, @args, @error_args, @return_value, @super, @callback
173:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.