FlexMock and RubyCocoa
FlexMock and RubyCocoa
Submitted by Brian Marick on Thu, 23/10/2008 - 17:48.Because FlexMock and RubyCocoa disagree about the use of method_missing, you need to use flexmock as follows:flexmock(SomeSubclassOfNSObject)If the method you want to mock isn’t already defined on SomeSubclassOfNSObject, you have to define it before mocking it:class Watcher < OSX::NSObject def observeValueForKeyPath_ofObject_change_context( [...]
