FlexMock, RubyCocoa, and Notifications
FlexMock, RubyCocoa, and Notifications
Submitted by Brian Marick on Tue, 01/07/2008 - 02:55.I was using FlexMock to test code using Cocoa NSNotifications. I discovered an odd thing, which might be useful to someone doing a Google search some day.My setup code originally looked like this: def setup @observed = NSObject.alloc.init @watcher = flexmock(NSObject.alloc.init) endThe notification connection was set up [...]
