{"action":"closed","issue":{"url":"https://api.github.com/repos/erikdoe/ocmock/issues/200","labels_url":"https://api.github.com/repos/erikdoe/ocmock/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/erikdoe/ocmock/issues/200/comments","events_url":"https://api.github.com/repos/erikdoe/ocmock/issues/200/events","html_url":"https://github.com/erikdoe/ocmock/issues/200","id":84604147,"number":200,"title":"Unable to stub method when name is clashing with OCMock (ie. reject)","user":{"login":"clausjoergensen","id":233721,"avatar_url":"https://avatars.githubusercontent.com/u/233721?v=3","gravatar_id":"","url":"https://api.github.com/users/clausjoergensen","html_url":"https://github.com/clausjoergensen","followers_url":"https://api.github.com/users/clausjoergensen/followers","following_url":"https://api.github.com/users/clausjoergensen/following{/other_user}","gists_url":"https://api.github.com/users/clausjoergensen/gists{/gist_id}","starred_url":"https://api.github.com/users/clausjoergensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clausjoergensen/subscriptions","organizations_url":"https://api.github.com/users/clausjoergensen/orgs","repos_url":"https://api.github.com/users/clausjoergensen/repos","events_url":"https://api.github.com/users/clausjoergensen/events{/privacy}","received_events_url":"https://api.github.com/users/clausjoergensen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-03T14:50:27Z","updated_at":"2015-08-22T09:37:53Z","closed_at":"2015-08-22T09:37:53Z","body":"If I have a class with a method named `reject` that returns a integer, OCMock is unable to stub it and have it return a custom value. \r\n\r\nExample:\r\n\r\n    MyModality *mockModality = OCMClassMock([MyModality class]);\r\n    OCMStub([mockModality reject]).andReturn(0);\r\n\r\nWhen we then call `int result = [modality reject]` in the code, the result will be the integer value of the pointer to reject, not the stubbed value of 0.\r\n\r\nOCMock should respected mocked names over it's own methods."}}