{"action":"created","issue":{"url":"https://api.github.com/repos/Quick/Nimble/issues/234","repository_url":"https://api.github.com/repos/Quick/Nimble","labels_url":"https://api.github.com/repos/Quick/Nimble/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/Quick/Nimble/issues/234/comments","events_url":"https://api.github.com/repos/Quick/Nimble/issues/234/events","html_url":"https://github.com/Quick/Nimble/issues/234","id":127526354,"number":234,"title":"Any way to test that fatalError() is called?","user":{"login":"abbeycode","id":1349578,"avatar_url":"https://avatars.githubusercontent.com/u/1349578?v=3","gravatar_id":"","url":"https://api.github.com/users/abbeycode","html_url":"https://github.com/abbeycode","followers_url":"https://api.github.com/users/abbeycode/followers","following_url":"https://api.github.com/users/abbeycode/following{/other_user}","gists_url":"https://api.github.com/users/abbeycode/gists{/gist_id}","starred_url":"https://api.github.com/users/abbeycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbeycode/subscriptions","organizations_url":"https://api.github.com/users/abbeycode/orgs","repos_url":"https://api.github.com/users/abbeycode/repos","events_url":"https://api.github.com/users/abbeycode/events{/privacy}","received_events_url":"https://api.github.com/users/abbeycode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Quick/Nimble/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Quick/Nimble/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-01-19T20:02:50Z","updated_at":"2016-02-06T04:19:17Z","closed_at":null,"body":"I'm testing failure cases in my code, and it doesn't look like Nimble provides a way to assert that a given block will call `fatalError()`. Is that correct? If so, it seems that would be a useful thing to have.\r\n\r\nThis Stack Overflow question has a couple of answers that might provide solutions: http://stackoverflow.com/questions/32873212/unit-test-fatalerror-in-swift"},"comment":{"url":"https://api.github.com/repos/Quick/Nimble/issues/comments/180678167","html_url":"https://github.com/Quick/Nimble/issues/234#issuecomment-180678167","issue_url":"https://api.github.com/repos/Quick/Nimble/issues/234","id":180678167,"user":{"login":"mattgallagher","id":28080,"avatar_url":"https://avatars.githubusercontent.com/u/28080?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgallagher","html_url":"https://github.com/mattgallagher","followers_url":"https://api.github.com/users/mattgallagher/followers","following_url":"https://api.github.com/users/mattgallagher/following{/other_user}","gists_url":"https://api.github.com/users/mattgallagher/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgallagher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgallagher/subscriptions","organizations_url":"https://api.github.com/users/mattgallagher/orgs","repos_url":"https://api.github.com/users/mattgallagher/repos","events_url":"https://api.github.com/users/mattgallagher/events{/privacy}","received_events_url":"https://api.github.com/users/mattgallagher/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T04:19:17Z","updated_at":"2016-02-06T04:19:17Z","body":"@modocache If your question was: \"Am I happy with you copying the approach of my code but not the actual code itself?\"... Sure. I don't blog about it because I'm feeling proprietary :-) In that case, a link back to me is always appreciated."}}