oldItems: aCollection
^self moduleDictionary at: 'oldItems' put: [aCollection]
The problem ought to be obvious, but it was a simple typo on my part - I was thinking of #at:ifAbsent: (which takes a block). Now, I suppose the static typing advocates will rush out at this point and tell me "if you had type checking..." maybe. On the other hand, testing is what solved the problem for me. Simple mistake, simple fix - it just wasn't clear what I had done to myself before I did some real testing. Note to self - more tests
Read: How to baffle yourself in one easy line