{"action":"created","issue":{"url":"https://api.github.com/repos/gantaa/MockInject/issues/1","labels_url":"https://api.github.com/repos/gantaa/MockInject/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gantaa/MockInject/issues/1/comments","events_url":"https://api.github.com/repos/gantaa/MockInject/issues/1/events","html_url":"https://github.com/gantaa/MockInject/issues/1","id":54336242,"number":1,"title":"Example for UIAlertView","user":{"login":"benvium","id":288569,"avatar_url":"https://avatars.githubusercontent.com/u/288569?v=3","gravatar_id":"","url":"https://api.github.com/users/benvium","html_url":"https://github.com/benvium","followers_url":"https://api.github.com/users/benvium/followers","following_url":"https://api.github.com/users/benvium/following{/other_user}","gists_url":"https://api.github.com/users/benvium/gists{/gist_id}","starred_url":"https://api.github.com/users/benvium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benvium/subscriptions","organizations_url":"https://api.github.com/users/benvium/orgs","repos_url":"https://api.github.com/users/benvium/repos","events_url":"https://api.github.com/users/benvium/events{/privacy}","received_events_url":"https://api.github.com/users/benvium/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-14T15:40:33Z","updated_at":"2015-01-14T21:14:36Z","closed_at":null,"body":"Hi there.\r\n\r\nThis looks really interesting. I got here after looking for a way to mock UIAlertView without having to dependency-inject it into dozens of places. You use UIAlertView as an example of a class that can be mocked, but then later on use generic examples.\r\nAny chance of adding an example of how to actually make a kiwi test that verifies an UIAlertView has been shown? \r\nI can probably work it out after a while, but it's be a great 'getting started' example.\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/gantaa/MockInject/issues/comments/69993139","html_url":"https://github.com/gantaa/MockInject/issues/1#issuecomment-69993139","issue_url":"https://api.github.com/repos/gantaa/MockInject/issues/1","id":69993139,"user":{"login":"benvium","id":288569,"avatar_url":"https://avatars.githubusercontent.com/u/288569?v=3","gravatar_id":"","url":"https://api.github.com/users/benvium","html_url":"https://github.com/benvium","followers_url":"https://api.github.com/users/benvium/followers","following_url":"https://api.github.com/users/benvium/following{/other_user}","gists_url":"https://api.github.com/users/benvium/gists{/gist_id}","starred_url":"https://api.github.com/users/benvium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benvium/subscriptions","organizations_url":"https://api.github.com/users/benvium/orgs","repos_url":"https://api.github.com/users/benvium/repos","events_url":"https://api.github.com/users/benvium/events{/privacy}","received_events_url":"https://api.github.com/users/benvium/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T21:14:36Z","updated_at":"2015-01-14T21:14:36Z","body":"An improvement to detecting if 'Fish' is the title of the AlertView..\r\n\r\n```\r\nit(@\"should show an alert dialog with the word 'Fish' in it when loaded (using receive:withArguments)\", ^{\r\n\r\n            alertViewMock = [MIMocker globalMockForClass:[UIAlertView class]\r\n                                            initSelector:@selector(initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:)\r\n                                           overrideClass:[SpecAlertView class]];\r\n\r\n\r\n            [[alertViewMock should]\r\n                    receive:@selector(initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:) withArguments:\r\n                                                                                                                   @\"Fish\",\r\n                    any(),\r\n                    any(),\r\n                    any(),\r\n                    any()\r\n            ];\r\n\r\n            [sut specsWindowSetRootViewController];\r\n        });\r\n```"}}