Speccing methods called in initialize

ruby / testing

Recently when writing Picky, the clever small text search engine, I encountered the following problem: How do I test methods that are called in an initializer?

(Of course I could call Testee.new in the spec and then just call the method again. But what if that method sets a state?)

In code:

Next Searching with Picky: Character Substitution