{"action":"created","comment":{"url":"https://api.github.com/repos/me-stevens/conman/pulls/comments/52304390","id":52304390,"diff_hunk":"@@ -51,7 +51,7 @@\n   it \"adds one contact to the database\" do\n     db.add(contact)\n     expect(db.size).to eq(1)\n-    expect(writer).to have_received(:run).once\n+    expect(writer).to have_received(:write).once","path":"spec/db/db_spec.rb","position":23,"original_position":23,"commit_id":"08d5262103124665e1c24ac7bfc0e5b648aa772e","original_commit_id":"08d5262103124665e1c24ac7bfc0e5b648aa772e","user":{"login":"jsuchy","id":6295,"avatar_url":"https://avatars.githubusercontent.com/u/6295?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuchy","html_url":"https://github.com/jsuchy","followers_url":"https://api.github.com/users/jsuchy/followers","following_url":"https://api.github.com/users/jsuchy/following{/other_user}","gists_url":"https://api.github.com/users/jsuchy/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuchy/subscriptions","organizations_url":"https://api.github.com/users/jsuchy/orgs","repos_url":"https://api.github.com/users/jsuchy/repos","events_url":"https://api.github.com/users/jsuchy/events{/privacy}","received_events_url":"https://api.github.com/users/jsuchy/received_events","type":"User","site_admin":false},"body":"With this test, I'm not sure that what write received is being tested, which seems important","created_at":"2016-02-09T13:05:55Z","updated_at":"2016-02-09T13:05:55Z","html_url":"https://github.com/me-stevens/conman/pull/7#discussion_r52304390","pull_request_url":"https://api.github.com/repos/me-stevens/conman/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/me-stevens/conman/pulls/comments/52304390"},"html":{"href":"https://github.com/me-stevens/conman/pull/7#discussion_r52304390"},"pull_request":{"href":"https://api.github.com/repos/me-stevens/conman/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/me-stevens/conman/pulls/7","id":58641669,"html_url":"https://github.com/me-stevens/conman/pull/7","diff_url":"https://github.com/me-stevens/conman/pull/7.diff","patch_url":"https://github.com/me-stevens/conman/pull/7.patch","issue_url":"https://api.github.com/repos/me-stevens/conman/issues/7","number":7,"state":"open","locked":false,"title":"Fileio","user":{"login":"me-stevens","id":2157089,"avatar_url":"https://avatars.githubusercontent.com/u/2157089?v=3","gravatar_id":"","url":"https://api.github.com/users/me-stevens","html_url":"https://github.com/me-stevens","followers_url":"https://api.github.com/users/me-stevens/followers","following_url":"https://api.github.com/users/me-stevens/following{/other_user}","gists_url":"https://api.github.com/users/me-stevens/gists{/gist_id}","starred_url":"https://api.github.com/users/me-stevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/me-stevens/subscriptions","organizations_url":"https://api.github.com/users/me-stevens/orgs","repos_url":"https://api.github.com/users/me-stevens/repos","events_url":"https://api.github.com/users/me-stevens/events{/privacy}","received_events_url":"https://api.github.com/users/me-stevens/received_events","type":"User","site_admin":false},"body":"This PR fixes the tests for the Reader and Writer classes and the header of the contacts displayed with an index when the option to update a contact is chosen.\r\n\r\nI also renamed the `run` method in both classes to `read` and `write`.\r\n\r\n@jsuchy @ChristophGockel","created_at":"2016-02-08T17:37:39Z","updated_at":"2016-02-09T13:05:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c80918e68a3816f2d9b16f71ccda82ce8799bd21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/me-stevens/conman/pulls/7/commits","review_comments_url":"https://api.github.com/repos/me-stevens/conman/pulls/7/comments","review_comment_url":"https://api.github.com/repos/me-stevens/conman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/me-stevens/conman/issues/7/comments","statuses_url":"https://api.github.com/repos/me-stevens/conman/statuses/08d5262103124665e1c24ac7bfc0e5b648aa772e","head":{"label":"me-stevens:fileio","ref":"fileio","sha":"08d5262103124665e1c24ac7bfc0e5b648aa772e","user":{"login":"me-stevens","id":2157089,"avatar_url":"https://avatars.githubusercontent.com/u/2157089?v=3","gravatar_id":"","url":"https://api.github.com/users/me-stevens","html_url":"https://github.com/me-stevens","followers_url":"https://api.github.com/users/me-stevens/followers","following_url":"https://api.github.com/users/me-stevens/following{/other_user}","gists_url":"https://api.github.com/users/me-stevens/gists{/gist_id}","starred_url":"https://api.github.com/users/me-stevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/me-stevens/subscriptions","organizations_url":"https://api.github.com/users/me-stevens/orgs","repos_url":"https://api.github.com/users/me-stevens/repos","events_url":"https://api.github.com/users/me-stevens/events{/privacy}","received_events_url":"https://api.github.com/users/me-stevens/received_events","type":"User","site_admin":false},"repo":{"id":50360505,"name":"conman","full_name":"me-stevens/conman","owner":{"login":"me-stevens","id":2157089,"avatar_url":"https://avatars.githubusercontent.com/u/2157089?v=3","gravatar_id":"","url":"https://api.github.com/users/me-stevens","html_url":"https://github.com/me-stevens","followers_url":"https://api.github.com/users/me-stevens/followers","following_url":"https://api.github.com/users/me-stevens/following{/other_user}","gists_url":"https://api.github.com/users/me-stevens/gists{/gist_id}","starred_url":"https://api.github.com/users/me-stevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/me-stevens/subscriptions","organizations_url":"https://api.github.com/users/me-stevens/orgs","repos_url":"https://api.github.com/users/me-stevens/repos","events_url":"https://api.github.com/users/me-stevens/events{/privacy}","received_events_url":"https://api.github.com/users/me-stevens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/me-stevens/conman","description":"Contact management app in Ruby","fork":false,"url":"https://api.github.com/repos/me-stevens/conman","forks_url":"https://api.github.com/repos/me-stevens/conman/forks","keys_url":"https://api.github.com/repos/me-stevens/conman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/me-stevens/conman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/me-stevens/conman/teams","hooks_url":"https://api.github.com/repos/me-stevens/conman/hooks","issue_events_url":"https://api.github.com/repos/me-stevens/conman/issues/events{/number}","events_url":"https://api.github.com/repos/me-stevens/conman/events","assignees_url":"https://api.github.com/repos/me-stevens/conman/assignees{/user}","branches_url":"https://api.github.com/repos/me-stevens/conman/branches{/branch}","tags_url":"https://api.github.com/repos/me-stevens/conman/tags","blobs_url":"https://api.github.com/repos/me-stevens/conman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/me-stevens/conman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/me-stevens/conman/git/refs{/sha}","trees_url":"https://api.github.com/repos/me-stevens/conman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/me-stevens/conman/statuses/{sha}","languages_url":"https://api.github.com/repos/me-stevens/conman/languages","stargazers_url":"https://api.github.com/repos/me-stevens/conman/stargazers","contributors_url":"https://api.github.com/repos/me-stevens/conman/contributors","subscribers_url":"https://api.github.com/repos/me-stevens/conman/subscribers","subscription_url":"https://api.github.com/repos/me-stevens/conman/subscription","commits_url":"https://api.github.com/repos/me-stevens/conman/commits{/sha}","git_commits_url":"https://api.github.com/repos/me-stevens/conman/git/commits{/sha}","comments_url":"https://api.github.com/repos/me-stevens/conman/comments{/number}","issue_comment_url":"https://api.github.com/repos/me-stevens/conman/issues/comments{/number}","contents_url":"https://api.github.com/repos/me-stevens/conman/contents/{+path}","compare_url":"https://api.github.com/repos/me-stevens/conman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/me-stevens/conman/merges","archive_url":"https://api.github.com/repos/me-stevens/conman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/me-stevens/conman/downloads","issues_url":"https://api.github.com/repos/me-stevens/conman/issues{/number}","pulls_url":"https://api.github.com/repos/me-stevens/conman/pulls{/number}","milestones_url":"https://api.github.com/repos/me-stevens/conman/milestones{/number}","notifications_url":"https://api.github.com/repos/me-stevens/conman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/me-stevens/conman/labels{/name}","releases_url":"https://api.github.com/repos/me-stevens/conman/releases{/id}","deployments_url":"https://api.github.com/repos/me-stevens/conman/deployments","created_at":"2016-01-25T15:36:45Z","updated_at":"2016-01-29T18:51:28Z","pushed_at":"2016-02-09T12:30:12Z","git_url":"git://github.com/me-stevens/conman.git","ssh_url":"git@github.com:me-stevens/conman.git","clone_url":"https://github.com/me-stevens/conman.git","svn_url":"https://github.com/me-stevens/conman","homepage":null,"size":86,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"me-stevens:master","ref":"master","sha":"e9d77918e8f75a0e00062f56d362091fa35d4ed3","user":{"login":"me-stevens","id":2157089,"avatar_url":"https://avatars.githubusercontent.com/u/2157089?v=3","gravatar_id":"","url":"https://api.github.com/users/me-stevens","html_url":"https://github.com/me-stevens","followers_url":"https://api.github.com/users/me-stevens/followers","following_url":"https://api.github.com/users/me-stevens/following{/other_user}","gists_url":"https://api.github.com/users/me-stevens/gists{/gist_id}","starred_url":"https://api.github.com/users/me-stevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/me-stevens/subscriptions","organizations_url":"https://api.github.com/users/me-stevens/orgs","repos_url":"https://api.github.com/users/me-stevens/repos","events_url":"https://api.github.com/users/me-stevens/events{/privacy}","received_events_url":"https://api.github.com/users/me-stevens/received_events","type":"User","site_admin":false},"repo":{"id":50360505,"name":"conman","full_name":"me-stevens/conman","owner":{"login":"me-stevens","id":2157089,"avatar_url":"https://avatars.githubusercontent.com/u/2157089?v=3","gravatar_id":"","url":"https://api.github.com/users/me-stevens","html_url":"https://github.com/me-stevens","followers_url":"https://api.github.com/users/me-stevens/followers","following_url":"https://api.github.com/users/me-stevens/following{/other_user}","gists_url":"https://api.github.com/users/me-stevens/gists{/gist_id}","starred_url":"https://api.github.com/users/me-stevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/me-stevens/subscriptions","organizations_url":"https://api.github.com/users/me-stevens/orgs","repos_url":"https://api.github.com/users/me-stevens/repos","events_url":"https://api.github.com/users/me-stevens/events{/privacy}","received_events_url":"https://api.github.com/users/me-stevens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/me-stevens/conman","description":"Contact management app in Ruby","fork":false,"url":"https://api.github.com/repos/me-stevens/conman","forks_url":"https://api.github.com/repos/me-stevens/conman/forks","keys_url":"https://api.github.com/repos/me-stevens/conman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/me-stevens/conman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/me-stevens/conman/teams","hooks_url":"https://api.github.com/repos/me-stevens/conman/hooks","issue_events_url":"https://api.github.com/repos/me-stevens/conman/issues/events{/number}","events_url":"https://api.github.com/repos/me-stevens/conman/events","assignees_url":"https://api.github.com/repos/me-stevens/conman/assignees{/user}","branches_url":"https://api.github.com/repos/me-stevens/conman/branches{/branch}","tags_url":"https://api.github.com/repos/me-stevens/conman/tags","blobs_url":"https://api.github.com/repos/me-stevens/conman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/me-stevens/conman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/me-stevens/conman/git/refs{/sha}","trees_url":"https://api.github.com/repos/me-stevens/conman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/me-stevens/conman/statuses/{sha}","languages_url":"https://api.github.com/repos/me-stevens/conman/languages","stargazers_url":"https://api.github.com/repos/me-stevens/conman/stargazers","contributors_url":"https://api.github.com/repos/me-stevens/conman/contributors","subscribers_url":"https://api.github.com/repos/me-stevens/conman/subscribers","subscription_url":"https://api.github.com/repos/me-stevens/conman/subscription","commits_url":"https://api.github.com/repos/me-stevens/conman/commits{/sha}","git_commits_url":"https://api.github.com/repos/me-stevens/conman/git/commits{/sha}","comments_url":"https://api.github.com/repos/me-stevens/conman/comments{/number}","issue_comment_url":"https://api.github.com/repos/me-stevens/conman/issues/comments{/number}","contents_url":"https://api.github.com/repos/me-stevens/conman/contents/{+path}","compare_url":"https://api.github.com/repos/me-stevens/conman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/me-stevens/conman/merges","archive_url":"https://api.github.com/repos/me-stevens/conman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/me-stevens/conman/downloads","issues_url":"https://api.github.com/repos/me-stevens/conman/issues{/number}","pulls_url":"https://api.github.com/repos/me-stevens/conman/pulls{/number}","milestones_url":"https://api.github.com/repos/me-stevens/conman/milestones{/number}","notifications_url":"https://api.github.com/repos/me-stevens/conman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/me-stevens/conman/labels{/name}","releases_url":"https://api.github.com/repos/me-stevens/conman/releases{/id}","deployments_url":"https://api.github.com/repos/me-stevens/conman/deployments","created_at":"2016-01-25T15:36:45Z","updated_at":"2016-01-29T18:51:28Z","pushed_at":"2016-02-09T12:30:12Z","git_url":"git://github.com/me-stevens/conman.git","ssh_url":"git@github.com:me-stevens/conman.git","clone_url":"https://github.com/me-stevens/conman.git","svn_url":"https://github.com/me-stevens/conman","homepage":null,"size":86,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/me-stevens/conman/pulls/7"},"html":{"href":"https://github.com/me-stevens/conman/pull/7"},"issue":{"href":"https://api.github.com/repos/me-stevens/conman/issues/7"},"comments":{"href":"https://api.github.com/repos/me-stevens/conman/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/me-stevens/conman/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/me-stevens/conman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/me-stevens/conman/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/me-stevens/conman/statuses/08d5262103124665e1c24ac7bfc0e5b648aa772e"}}}}