# File lib/mocha/expectation.rb, line 590 def mocha_inspect message = "#{@cardinality.mocha_inspect}, " message << case @invocation_count when 0 then 'not yet invoked' when 1 then 'invoked once' when 2 then 'invoked twice' else "invoked #{@invocation_count} times" end message << ': ' message << method_signature message << "; #{@ordering_constraints.map(&:mocha_inspect).join('; ')}" unless @ordering_constraints.empty? message end