{"issue":{"created_at":"2011-11-30T03:53:56Z","state":"open","updated_at":"2011-11-30T09:32:54Z","comments":1,"user":{"gravatar_id":"9589076e5febf87d6d7156928e934c60","id":58990,"url":"https://api.github.com/users/haxie1","avatar_url":"https://secure.gravatar.com/avatar/9589076e5febf87d6d7156928e934c60?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"haxie1"},"body":"Hi all,\r\n\r\nWondering how you go about testing internal or private methods for your classes. I know testing private methods is typically frowned on, but with Obj-C I end up with lots of internal code that I would like to have tests for. I run into a wall using BDD and tools like Kiwi, since I am not really sure how to go about speccing this behavior. How do those of you with more experience in this area go about testing the internal parts of your classes (if you write these tests at all) and would you be willing to share an example or two?\r\n\r\nthx\r\n\r\nkam","assignee":null,"id":2397197,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":76,"title":"Testing private or internal methods?","html_url":"https://github.com/allending/Kiwi/issues/76","closed_at":null,"url":"https://api.github.com/repos/allending/Kiwi/issues/76","milestone":null},"action":"created","comment":{"created_at":"2011-11-30T09:32:54Z","updated_at":"2011-11-30T09:32:54Z","user":{"gravatar_id":"b8045443d3d60277f19a33fd7341eaf2","id":73557,"url":"https://api.github.com/users/allending","avatar_url":"https://secure.gravatar.com/avatar/b8045443d3d60277f19a33fd7341eaf2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"allending"},"body":"When I do test, I don't test internal methods. If you really need to, I'd add the signatures to a protected header file that only a limited number of other source files (e.g. MySpec.m) import.","id":2957122,"url":"https://api.github.com/repos/allending/Kiwi/issues/comments/2957122"}}