Open jbelkins opened 9 years ago
I have the same problem. How I can make it right? did you know?
It seems not support for scale value, i find the source is implements with method signature invoke, but not find the implement of match method signature return value with obj like this @(YES).
I changed theValue(YES)
to theValue(1)
in stub return, which works fine now in ver 3.0.
When stubbing a class method that returns boolean on a class mock, an error occurs when trying to set the return value.
ExampleClass has a method with the following signature:
Here is the spec:
From the console:
Here is a simple iOS project that demonstrates this error: https://github.com/jbelkins/KiwiBugExamples
Please let me know if I am not setting up this test properly or if you cannot reproduce. If someone can confirm this is a Kiwi bug and not operator error, I will spend some time trying to fix it.