#52 ✓resolved

'never' expectation failed: twisted message

Reported by dira | August 8th, 2009 @ 03:14 PM


should result in:

Mocha::ExpectationError: unexpected invocation: ''.fancy(2)

but it prints:

Mocha::ExpectationError: unexpected invocation: ''.fancy(2)
satisfied expectations:
- expected never, not yet invoked: ''.fancy(2)

Comments and changes to this ticket

  • James Mead

    James Mead November 30th, 2010 @ 09:48 AM

    • State changed from “new” to “resolved”
    • Milestone order changed from “0” to “0”

    @dira: Sorry for the (very) late response. I've just made an attempt to make the failure message less confusing. You should now see something like this :-

    Mocha::ExpectationError: unexpected invocation: ''.fancy(2)
    unsatisfied expectations:
    - expected never, invoked once: ''.fancy(2)

    I hope you don't mind, but I'm going to close this ticket.

  • dira

    dira November 30th, 2010 @ 02:18 PM

    Thanks James, that looks great.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A mocking & stubbing library for Ruby.

* <a href="http://github.com/floehopper/mocha">GitHub repository</a>
* <a href="http://mocha.rubyforge.org">Documentation</a>
* <a href="http://groups.google.com/group/mocha-developer">Mailing List</a>

People watching this ticket