{"action":"created","comment":{"url":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/comments/145824935","pull_request_review_id":70683740,"id":145824935,"diff_hunk":"@@ -0,0 +1,170 @@\n+# Testing Crystal Code\n+\n+Crystal comes with a full-feature spec library in the [`Spec`module](https://crystal-lang.org/api/latest/Spec.html). It provides the structure for writing executable examples of how your code should behave.","path":"guides/testing.md","position":3,"original_position":3,"commit_id":"09f0e0899498a4eec12f09fe1f9920c839a6aa59","original_commit_id":"09f0e0899498a4eec12f09fe1f9920c839a6aa59","user":{"login":"RX14","id":2788811,"avatar_url":"https://avatars0.githubusercontent.com/u/2788811?v=4","gravatar_id":"","url":"https://api.github.com/users/RX14","html_url":"https://github.com/RX14","followers_url":"https://api.github.com/users/RX14/followers","following_url":"https://api.github.com/users/RX14/following{/other_user}","gists_url":"https://api.github.com/users/RX14/gists{/gist_id}","starred_url":"https://api.github.com/users/RX14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RX14/subscriptions","organizations_url":"https://api.github.com/users/RX14/orgs","repos_url":"https://api.github.com/users/RX14/repos","events_url":"https://api.github.com/users/RX14/events{/privacy}","received_events_url":"https://api.github.com/users/RX14/received_events","type":"User","site_admin":false},"body":"@asterite I strongly disagree btw, there's nothing that the spec library can't do currently which isn't better expressed using helper methods. The spec harness currently is fantastic.","created_at":"2017-10-19T21:11:04Z","updated_at":"2017-10-19T21:11:04Z","html_url":"https://github.com/crystal-lang/crystal-book/pull/129#discussion_r145824935","pull_request_url":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/129","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/comments/145824935"},"html":{"href":"https://github.com/crystal-lang/crystal-book/pull/129#discussion_r145824935"},"pull_request":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/129"}},"in_reply_to_id":145405444},"pull_request":{"url":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/129","id":145492569,"html_url":"https://github.com/crystal-lang/crystal-book/pull/129","diff_url":"https://github.com/crystal-lang/crystal-book/pull/129.diff","patch_url":"https://github.com/crystal-lang/crystal-book/pull/129.patch","issue_url":"https://api.github.com/repos/crystal-lang/crystal-book/issues/129","number":129,"state":"open","locked":false,"title":"Add a guide about testing","user":{"login":"straight-shoota","id":466378,"avatar_url":"https://avatars0.githubusercontent.com/u/466378?v=4","gravatar_id":"","url":"https://api.github.com/users/straight-shoota","html_url":"https://github.com/straight-shoota","followers_url":"https://api.github.com/users/straight-shoota/followers","following_url":"https://api.github.com/users/straight-shoota/following{/other_user}","gists_url":"https://api.github.com/users/straight-shoota/gists{/gist_id}","starred_url":"https://api.github.com/users/straight-shoota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/straight-shoota/subscriptions","organizations_url":"https://api.github.com/users/straight-shoota/orgs","repos_url":"https://api.github.com/users/straight-shoota/repos","events_url":"https://api.github.com/users/straight-shoota/events{/privacy}","received_events_url":"https://api.github.com/users/straight-shoota/received_events","type":"User","site_admin":false},"body":"Closes #111 \r\n","created_at":"2017-10-09T16:10:30Z","updated_at":"2017-10-19T21:11:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b660b487ecadc5e5bf212f3fde83766c0d1e479a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/129/commits","review_comments_url":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/129/comments","review_comment_url":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crystal-lang/crystal-book/issues/129/comments","statuses_url":"https://api.github.com/repos/crystal-lang/crystal-book/statuses/09f0e0899498a4eec12f09fe1f9920c839a6aa59","head":{"label":"straight-shoota:jm-testing","ref":"jm-testing","sha":"09f0e0899498a4eec12f09fe1f9920c839a6aa59","user":{"login":"straight-shoota","id":466378,"avatar_url":"https://avatars0.githubusercontent.com/u/466378?v=4","gravatar_id":"","url":"https://api.github.com/users/straight-shoota","html_url":"https://github.com/straight-shoota","followers_url":"https://api.github.com/users/straight-shoota/followers","following_url":"https://api.github.com/users/straight-shoota/following{/other_user}","gists_url":"https://api.github.com/users/straight-shoota/gists{/gist_id}","starred_url":"https://api.github.com/users/straight-shoota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/straight-shoota/subscriptions","organizations_url":"https://api.github.com/users/straight-shoota/orgs","repos_url":"https://api.github.com/users/straight-shoota/repos","events_url":"https://api.github.com/users/straight-shoota/events{/privacy}","received_events_url":"https://api.github.com/users/straight-shoota/received_events","type":"User","site_admin":false},"repo":{"id":91976418,"name":"crystal-book","full_name":"straight-shoota/crystal-book","owner":{"login":"straight-shoota","id":466378,"avatar_url":"https://avatars0.githubusercontent.com/u/466378?v=4","gravatar_id":"","url":"https://api.github.com/users/straight-shoota","html_url":"https://github.com/straight-shoota","followers_url":"https://api.github.com/users/straight-shoota/followers","following_url":"https://api.github.com/users/straight-shoota/following{/other_user}","gists_url":"https://api.github.com/users/straight-shoota/gists{/gist_id}","starred_url":"https://api.github.com/users/straight-shoota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/straight-shoota/subscriptions","organizations_url":"https://api.github.com/users/straight-shoota/orgs","repos_url":"https://api.github.com/users/straight-shoota/repos","events_url":"https://api.github.com/users/straight-shoota/events{/privacy}","received_events_url":"https://api.github.com/users/straight-shoota/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/straight-shoota/crystal-book","description":"Crystal docs at https://crystal-lang.org/docs/","fork":true,"url":"https://api.github.com/repos/straight-shoota/crystal-book","forks_url":"https://api.github.com/repos/straight-shoota/crystal-book/forks","keys_url":"https://api.github.com/repos/straight-shoota/crystal-book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/straight-shoota/crystal-book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/straight-shoota/crystal-book/teams","hooks_url":"https://api.github.com/repos/straight-shoota/crystal-book/hooks","issue_events_url":"https://api.github.com/repos/straight-shoota/crystal-book/issues/events{/number}","events_url":"https://api.github.com/repos/straight-shoota/crystal-book/events","assignees_url":"https://api.github.com/repos/straight-shoota/crystal-book/assignees{/user}","branches_url":"https://api.github.com/repos/straight-shoota/crystal-book/branches{/branch}","tags_url":"https://api.github.com/repos/straight-shoota/crystal-book/tags","blobs_url":"https://api.github.com/repos/straight-shoota/crystal-book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/straight-shoota/crystal-book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/straight-shoota/crystal-book/git/refs{/sha}","trees_url":"https://api.github.com/repos/straight-shoota/crystal-book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/straight-shoota/crystal-book/statuses/{sha}","languages_url":"https://api.github.com/repos/straight-shoota/crystal-book/languages","stargazers_url":"https://api.github.com/repos/straight-shoota/crystal-book/stargazers","contributors_url":"https://api.github.com/repos/straight-shoota/crystal-book/contributors","subscribers_url":"https://api.github.com/repos/straight-shoota/crystal-book/subscribers","subscription_url":"https://api.github.com/repos/straight-shoota/crystal-book/subscription","commits_url":"https://api.github.com/repos/straight-shoota/crystal-book/commits{/sha}","git_commits_url":"https://api.github.com/repos/straight-shoota/crystal-book/git/commits{/sha}","comments_url":"https://api.github.com/repos/straight-shoota/crystal-book/comments{/number}","issue_comment_url":"https://api.github.com/repos/straight-shoota/crystal-book/issues/comments{/number}","contents_url":"https://api.github.com/repos/straight-shoota/crystal-book/contents/{+path}","compare_url":"https://api.github.com/repos/straight-shoota/crystal-book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/straight-shoota/crystal-book/merges","archive_url":"https://api.github.com/repos/straight-shoota/crystal-book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/straight-shoota/crystal-book/downloads","issues_url":"https://api.github.com/repos/straight-shoota/crystal-book/issues{/number}","pulls_url":"https://api.github.com/repos/straight-shoota/crystal-book/pulls{/number}","milestones_url":"https://api.github.com/repos/straight-shoota/crystal-book/milestones{/number}","notifications_url":"https://api.github.com/repos/straight-shoota/crystal-book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/straight-shoota/crystal-book/labels{/name}","releases_url":"https://api.github.com/repos/straight-shoota/crystal-book/releases{/id}","deployments_url":"https://api.github.com/repos/straight-shoota/crystal-book/deployments","created_at":"2017-05-21T17:47:37Z","updated_at":"2017-05-16T05:37:26Z","pushed_at":"2017-10-10T21:00:14Z","git_url":"git://github.com/straight-shoota/crystal-book.git","ssh_url":"git@github.com:straight-shoota/crystal-book.git","clone_url":"https://github.com/straight-shoota/crystal-book.git","svn_url":"https://github.com/straight-shoota/crystal-book","homepage":"","size":404,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"crystal-lang:master","ref":"master","sha":"8f0307c5ca549062b7c46aa3cd3f19884f056cb0","user":{"login":"crystal-lang","id":6539796,"avatar_url":"https://avatars0.githubusercontent.com/u/6539796?v=4","gravatar_id":"","url":"https://api.github.com/users/crystal-lang","html_url":"https://github.com/crystal-lang","followers_url":"https://api.github.com/users/crystal-lang/followers","following_url":"https://api.github.com/users/crystal-lang/following{/other_user}","gists_url":"https://api.github.com/users/crystal-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/crystal-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystal-lang/subscriptions","organizations_url":"https://api.github.com/users/crystal-lang/orgs","repos_url":"https://api.github.com/users/crystal-lang/repos","events_url":"https://api.github.com/users/crystal-lang/events{/privacy}","received_events_url":"https://api.github.com/users/crystal-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":62080368,"name":"crystal-book","full_name":"crystal-lang/crystal-book","owner":{"login":"crystal-lang","id":6539796,"avatar_url":"https://avatars0.githubusercontent.com/u/6539796?v=4","gravatar_id":"","url":"https://api.github.com/users/crystal-lang","html_url":"https://github.com/crystal-lang","followers_url":"https://api.github.com/users/crystal-lang/followers","following_url":"https://api.github.com/users/crystal-lang/following{/other_user}","gists_url":"https://api.github.com/users/crystal-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/crystal-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystal-lang/subscriptions","organizations_url":"https://api.github.com/users/crystal-lang/orgs","repos_url":"https://api.github.com/users/crystal-lang/repos","events_url":"https://api.github.com/users/crystal-lang/events{/privacy}","received_events_url":"https://api.github.com/users/crystal-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crystal-lang/crystal-book","description":"Crystal docs at https://crystal-lang.org/docs/","fork":false,"url":"https://api.github.com/repos/crystal-lang/crystal-book","forks_url":"https://api.github.com/repos/crystal-lang/crystal-book/forks","keys_url":"https://api.github.com/repos/crystal-lang/crystal-book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crystal-lang/crystal-book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crystal-lang/crystal-book/teams","hooks_url":"https://api.github.com/repos/crystal-lang/crystal-book/hooks","issue_events_url":"https://api.github.com/repos/crystal-lang/crystal-book/issues/events{/number}","events_url":"https://api.github.com/repos/crystal-lang/crystal-book/events","assignees_url":"https://api.github.com/repos/crystal-lang/crystal-book/assignees{/user}","branches_url":"https://api.github.com/repos/crystal-lang/crystal-book/branches{/branch}","tags_url":"https://api.github.com/repos/crystal-lang/crystal-book/tags","blobs_url":"https://api.github.com/repos/crystal-lang/crystal-book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crystal-lang/crystal-book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crystal-lang/crystal-book/git/refs{/sha}","trees_url":"https://api.github.com/repos/crystal-lang/crystal-book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crystal-lang/crystal-book/statuses/{sha}","languages_url":"https://api.github.com/repos/crystal-lang/crystal-book/languages","stargazers_url":"https://api.github.com/repos/crystal-lang/crystal-book/stargazers","contributors_url":"https://api.github.com/repos/crystal-lang/crystal-book/contributors","subscribers_url":"https://api.github.com/repos/crystal-lang/crystal-book/subscribers","subscription_url":"https://api.github.com/repos/crystal-lang/crystal-book/subscription","commits_url":"https://api.github.com/repos/crystal-lang/crystal-book/commits{/sha}","git_commits_url":"https://api.github.com/repos/crystal-lang/crystal-book/git/commits{/sha}","comments_url":"https://api.github.com/repos/crystal-lang/crystal-book/comments{/number}","issue_comment_url":"https://api.github.com/repos/crystal-lang/crystal-book/issues/comments{/number}","contents_url":"https://api.github.com/repos/crystal-lang/crystal-book/contents/{+path}","compare_url":"https://api.github.com/repos/crystal-lang/crystal-book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crystal-lang/crystal-book/merges","archive_url":"https://api.github.com/repos/crystal-lang/crystal-book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crystal-lang/crystal-book/downloads","issues_url":"https://api.github.com/repos/crystal-lang/crystal-book/issues{/number}","pulls_url":"https://api.github.com/repos/crystal-lang/crystal-book/pulls{/number}","milestones_url":"https://api.github.com/repos/crystal-lang/crystal-book/milestones{/number}","notifications_url":"https://api.github.com/repos/crystal-lang/crystal-book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crystal-lang/crystal-book/labels{/name}","releases_url":"https://api.github.com/repos/crystal-lang/crystal-book/releases{/id}","deployments_url":"https://api.github.com/repos/crystal-lang/crystal-book/deployments","created_at":"2016-06-27T18:56:46Z","updated_at":"2017-10-19T00:51:26Z","pushed_at":"2017-10-19T20:00:30Z","git_url":"git://github.com/crystal-lang/crystal-book.git","ssh_url":"git@github.com:crystal-lang/crystal-book.git","clone_url":"https://github.com/crystal-lang/crystal-book.git","svn_url":"https://github.com/crystal-lang/crystal-book","homepage":"","size":396,"stargazers_count":81,"watchers_count":81,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":31,"forks":79,"open_issues":31,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/129"},"html":{"href":"https://github.com/crystal-lang/crystal-book/pull/129"},"issue":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/issues/129"},"comments":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/crystal-lang/crystal-book/statuses/09f0e0899498a4eec12f09fe1f9920c839a6aa59"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"RX14"}}