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.

Deleted User's latest activity

Monday, August 09 2010
69 Allow unstubbing of methods was updated in mocha
  • Deleted User
    Deleted User commented at 4:58 PM
    1. I should mention that I was not able (with almost no effort) to implement unstub_any
    2. I would expect both to revert
    3. Dunno
    4. My expectation would be that the momen...
68 during block for mocha was updated in mocha
  • Deleted User
    Deleted User commented at 4:51 PM

    I agree that this is a better solution. With a solid #unstub in place, #during becomes trivial to write.

    The reason I suggested #during is specifically because ...

Thursday, July 29 2010
68 during block for mocha was updated in mocha
  • Deleted User
    Deleted User commented at 5:35 AM

    during seems like a reasonable and simple solution to the general problem that is:
    "it is hard to unstub"

    then is a fine solution if you're not worried about "t...

Wednesday, July 28 2010
68 during block for mocha was updated in mocha
  • Deleted User
    Deleted User commented at 4:42 PM

    Right - so the only reason (IMHO) that timecop exists is because these few lines of code are missing from Mocha. Why perpetuate the need for yet another gem?

    Ot...

Tuesday, July 27 2010
68 during block for mocha was updated in mocha
  • Deleted User
    Deleted User commented at 5:45 PM

    I use this in rspec tests, mostly. It's also useful if you want to have part of a test say that "now" is 2 weeks ago, then 1 week ago, then really now.

    As for t...