{"action":"created","issue":{"url":"https://api.github.com/repos/erikdoe/ocmock/issues/218","labels_url":"https://api.github.com/repos/erikdoe/ocmock/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/erikdoe/ocmock/issues/218/comments","events_url":"https://api.github.com/repos/erikdoe/ocmock/issues/218/events","html_url":"https://github.com/erikdoe/ocmock/issues/218","id":99470738,"number":218,"title":"Mock Object not recognizing a selector that is defined in the mocked class","user":{"login":"jhoughjr","id":1562633,"avatar_url":"https://avatars.githubusercontent.com/u/1562633?v=3","gravatar_id":"","url":"https://api.github.com/users/jhoughjr","html_url":"https://github.com/jhoughjr","followers_url":"https://api.github.com/users/jhoughjr/followers","following_url":"https://api.github.com/users/jhoughjr/following{/other_user}","gists_url":"https://api.github.com/users/jhoughjr/gists{/gist_id}","starred_url":"https://api.github.com/users/jhoughjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhoughjr/subscriptions","organizations_url":"https://api.github.com/users/jhoughjr/orgs","repos_url":"https://api.github.com/users/jhoughjr/repos","events_url":"https://api.github.com/users/jhoughjr/events{/privacy}","received_events_url":"https://api.github.com/users/jhoughjr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/erikdoe/ocmock/labels/enhancement","name":"enhancement","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-06T16:11:26Z","updated_at":"2015-09-02T14:51:40Z","closed_at":null,"body":"I'm mocking UILocalNotification.\r\nIn its header, it declares : \r\n(line 47, UILocalNotification.h)\r\n@property(nonatomic,copy) NSDictionary *userInfo;   // throws if contains non-property list types\r\n\r\nHowever expecting -userInfo on the UILocalNotification mock throws the \"cannot stub/verify .. because it does not exist in the mocked class\" exception.\r\n\r\nIf I do not expect it, when the test runs I get an unrecognized selector exception.\r\n\r\nI dont understand why this is happening since it appears to be the same scenario in many tests that work fine.\r\n\r\nHere is the test and code under test that reproduces this scenario\r\nhttps://gist.github.com/jhoughjr/dcfd9a7bbf869c0695d1\r\n\r\nPossibly I am doing something wrong, but I don't see it, as this seems a  simple test case."},"comment":{"url":"https://api.github.com/repos/erikdoe/ocmock/issues/comments/137111070","html_url":"https://github.com/erikdoe/ocmock/issues/218#issuecomment-137111070","issue_url":"https://api.github.com/repos/erikdoe/ocmock/issues/218","id":137111070,"user":{"login":"jhoughjr","id":1562633,"avatar_url":"https://avatars.githubusercontent.com/u/1562633?v=3","gravatar_id":"","url":"https://api.github.com/users/jhoughjr","html_url":"https://github.com/jhoughjr","followers_url":"https://api.github.com/users/jhoughjr/followers","following_url":"https://api.github.com/users/jhoughjr/following{/other_user}","gists_url":"https://api.github.com/users/jhoughjr/gists{/gist_id}","starred_url":"https://api.github.com/users/jhoughjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhoughjr/subscriptions","organizations_url":"https://api.github.com/users/jhoughjr/orgs","repos_url":"https://api.github.com/users/jhoughjr/repos","events_url":"https://api.github.com/users/jhoughjr/events{/privacy}","received_events_url":"https://api.github.com/users/jhoughjr/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T14:51:40Z","updated_at":"2015-09-02T14:51:40Z","body":"I'm noticing more scope problems it seems.\r\n\r\nI have some private properties exposed to my test fixture via a category called (TestInterface) that is imported in my test fixture.\r\n\r\nBefore I refactored the name of said private property to correct a typo, OCMock has no problem stubbing that accessor. \r\n\r\nAfter the rename, even though all occurrences have been renamed, OCMock now says the method does not exist in the mocked class.\r\n\r\nAny ideas?\r\nI've updated to the latest OCMock yesterday, (3.5.1 iirc)"}}