Files

Caricature::EventExpectationSyntax

Syntax for the expectation builder and expectation to define an event on the expectation.

Public Instance Methods

raise_event(name, *ags, &b) click to toggle source

tell the expectation it needs to raise an event when this method is called

    # File lib/caricature/clr/expectation.rb, line 8
 8:     def raise_event(name, *ags, &b)
 9:       collected.merge!(:event_name => name, :event_args => ags, :event_handler => b)
10:       self
11:     end
raise_subscriptions() click to toggle source

raises the events that has been registered on the object at runtime

    # File lib/caricature/clr/expectation.rb, line 14
14:     def raise_subscriptions
15:       collected[:raise_subscriptions] = true
16:       self
17:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.