# File lib/mocha/expectation.rb, line 584 584: def mocha_inspect 585: message = "#{@cardinality.mocha_inspect}, " 586: message << case @invocation_count 587: when 0 then "not yet invoked" 588: when 1 then "invoked once" 589: when 2 then "invoked twice" 590: else "invoked #{@invocation_count} times" 591: end 592: message << ": " 593: message << method_signature 594: message << "; #{@ordering_constraints.map { |oc| oc.mocha_inspect }.join("; ")}" unless @ordering_constraints.empty? 595: message 596: end