Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Alex's latest activity

Thursday, November 11 2010
73 Consider adding jMock custom actions to provide side effect functionality was updated in mocha
  • Alex
    Alex commented at 7:42 PM

    Here's some code pulled from my tumblr-sync code.

    http://pastie.org/1290749

    I wanted to be able to get actual numbers for saves called etc. so that I could ensu...

  • Alex
    Alex commented at 6:30 PM

    To add a use case, I mocked an API and was using some test data (tumblr posts: 5 normal, 4 pics, 3 quotes etc.)

    To check things were saving as they should, I ne...

  • Alex
    Alex commented at 6:29 PM

    Am I wrong, or is the JMock custom action essentially the same thing as this patch?

    JMock uses 'will', I used 'runs'.

    jmock: oneOf (mangoTree).pickFruit(with(an...

Sunday, October 17 2010
69 Allow unstubbing of methods was updated in mocha
  • Alex
    Alex commented at 5:40 PM

    I created a fix for this - http://github.com/alexheaton/mocha (alexheaton/unstubs or master branches)

    I'd really welcome some feedback, I'm sure there are thing...