class Mocha::StateMachine

def is_not(unexpected_state_name) # rubocop:disable Naming/PredicateName

Returns:
  • (StatePredicate) - state predicate which, when queried, will indicate whether the {StateMachine} is *not* in the state specified by +unexpected_state_name+.

Parameters:
  • unexpected_state_name (String) -- name of unexpected state.
def is_not(unexpected_state_name) # rubocop:disable Naming/PredicateName
  StatePredicate.new(self, unexpected_state_name, 'is not') { |current, given| current != given }
end