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 252
252:     def initialize(method_name)
253:       @collected = { :method_name => method_name, :args => [], :any_args => true }
254:     end

Public Instance Methods

build() click to toggle source

build up the expectation with the provided arguments

     # File lib/caricature/expectation.rb, line 259
259:     def build
260:       Expectation.new collected
261:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.