luisobo / Nocilla

Testing HTTP requests has never been easier. Nocilla: Stunning HTTP stubbing for iOS and Mac OS X.
https://twitter.com/luisobo
MIT License
1.84k stars 172 forks source link

OCMock compatibility #81

Closed alexeyismirnov closed 9 years ago

alexeyismirnov commented 9 years ago

The problem is that it is impossible to use Nocilla together with OCMock, as described in this StackOverflow question:

http://stackoverflow.com/questions/26362151/are-ocmock-and-nocilla-incompatible

luisobo commented 9 years ago

That's unfortunate. I'm not planning to change the DSL to solve this, specially because whatever option I may choose could conflict with another macro in other library. Another reason is that Nocilla defines an instance method called andReturn while OCMock uses macros, which are more invasive and global. I think they should be the ones taking a more conservative approach and prefixing their macros.

In any case, as a workaround, you can UNDEF OCMock's macro.