Parent

Methods

Included Modules

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 142
    def initialize(method_name)
      @method_name, @return_value, @super, @block, @error_args, @args, @any_args = 
              method_name, nil, nil, nil, nil, [], true
    end

Public Instance Methods

build() click to toggle source

build up the expectation with the provided arguments

# File lib/caricature/expectation.rb, line 150
    def build
      Expectation.new @method_name, @args, @error_args, @return_value, @super
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.