Parent

Files

Mocha::InStateOrderingConstraint

Public Class Methods

new(state_predicate) click to toggle source
   # File lib/mocha/in_state_ordering_constraint.rb, line 5
5:     def initialize(state_predicate)
6:       @state_predicate = state_predicate
7:     end

Public Instance Methods

allows_invocation_now?() click to toggle source
    # File lib/mocha/in_state_ordering_constraint.rb, line 9
 9:     def allows_invocation_now?
10:       @state_predicate.active?
11:     end
mocha_inspect() click to toggle source
    # File lib/mocha/in_state_ordering_constraint.rb, line 13
13:     def mocha_inspect
14:       "when #{@state_predicate.mocha_inspect}"
15:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.