This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 9a7ab8b05b748932d25d3e05a3d09600afa99f7b
tree e04a2fee1fa8196dcf3c5d6cdcc202cef3781813
parent 13e784978571b341a2783f95c1a26f4d2d4fd68e
tree e04a2fee1fa8196dcf3c5d6cdcc202cef3781813
parent 13e784978571b341a2783f95c1a26f4d2d4fd68e
... |
... |
|





Comments
Thought I knew all of Mocha :-/
If you mean #any_instance, you were better off not knowing. It’s a nasty code smell.
You’re a nasty code smell.
git-bisect says was not a good idea. What handy a little tool.
9a7ab8b05b748932d25d3e05a3d09600afa99f7b is first bad commit
commit 9a7ab8b05b748932d25d3e05a3d09600afa99f7b
Author: Jeremy Kemper
Date: Fri Apr 11 16:44:42 2008 -0700
Investigating.
any_instance is useful where you can’t turn the instance (of Dispatcher in this case) into a collaborator (i.e. something that’s passed to a method).
Another way of getting around using #any_instance is stubbing whatever creates the Dispatcher instance (and probably extracting the creation of the Dispatcher into a method while you do that) to return a known instance (or a stub object).
However, often that’s more work than one might hope…
(apologies for the weird formatting there, i didn’t realise it was going to use Markdown…)
@lazyatom:
NO WORRIES!