mocha_inspect (Mocha::Cardinality)

        # File lib/mocha/cardinality.rb, line 60
    60:     def mocha_inspect
    61:       if allowed_any_number_of_times?
    62:         "allowed any number of times"
    63:       else
    64:         if required == 0 && maximum == 0
    65:           "expected never"
    66:         elsif required == maximum
    67:           "expected exactly #{times(required)}"
    68:         elsif infinite?(maximum)
    69:           "expected at least #{times(required)}"
    70:         elsif required == 0
    71:           "expected at most #{times(maximum)}"
    72:         else
    73:           "expected between #{required} and #{times(maximum)}"
    74:         end
    75:       end
    76:     end