floehopper/mocha — pull request #48 by cairo140 (2011-12-23 20:09:00+00:00)
Title: submitting a (suspected) bug where a stub is not fully cleared from an inherited method

This commit contains a broken test.

I strongly suspect that this is somehow related to #47. At the very least, it represents functionality that surprised me. I welcome the possibility that I'm simply "thinking about it wrong", but it feels like this should "just work". I'm afraid I don't understand the internals well enough to navigate it myself.

------

From the commit message I wrote:

compare running the following two tests:

```
rake test TEST=test/acceptance/stubbing_superclass_does_not_affect_subclass_across_test_runs_without_stubs_test
rake test TEST=test/acceptance/stubbing_superclass_does_not_affect_subclass_across_test_runs_test
```

observe the second test set differs from the first only in that it contains another separate test that sets up a stub, whose effects seem to mysteriously trickle into the second