class Mocha::InStateOrderingConstraint
Public Class Methods
new(state_predicate)
click to toggle source
# File lib/mocha/in_state_ordering_constraint.rb, line 3 def initialize(state_predicate) @state_predicate = state_predicate end
Public Instance Methods
allows_invocation_now?()
click to toggle source
# File lib/mocha/in_state_ordering_constraint.rb, line 7 def allows_invocation_now? @state_predicate.active? end
mocha_inspect()
click to toggle source
# File lib/mocha/in_state_ordering_constraint.rb, line 11 def mocha_inspect "when #{@state_predicate.mocha_inspect}" end