Skip navigation.

FlexMock, RubyCocoa, and Notifications

FlexMock, RubyCocoa, and Notifications

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 [...]