{"action":"created","comment":{"url":"https://api.github.com/repos/cbitstech/social_networking/pulls/comments/25983935","id":25983935,"diff_hunk":"@@ -0,0 +1,45 @@\n+require \"spec_helper\"\n+\n+module SocialNetworking\n+  describe Comment, type: :model do\n+    fixtures(:participants, :\"social_networking/goals\")\n+    let(:participant1) { participants(:participant1) }\n+    let(:goal) { social_networking_goals(:participant2_goal_alpha) }\n+\n+    it \"should return the number of comments made today\" do\n+      count = Comment.for_today.count\n+\n+      Comment.create(\n+        participant_id: participant1.id,\n+        item_id: goal.id,","path":"spec/models/social_networking/comment_spec.rb","position":14,"original_position":14,"commit_id":"608c3271eca020c4646f776eb1040dcb14957d1c","original_commit_id":"608c3271eca020c4646f776eb1040dcb14957d1c","user":{"login":"ericcf","id":58693,"avatar_url":"https://avatars.githubusercontent.com/u/58693?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcf","html_url":"https://github.com/ericcf","followers_url":"https://api.github.com/users/ericcf/followers","following_url":"https://api.github.com/users/ericcf/following{/other_user}","gists_url":"https://api.github.com/users/ericcf/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcf/subscriptions","organizations_url":"https://api.github.com/users/ericcf/orgs","repos_url":"https://api.github.com/users/ericcf/repos","events_url":"https://api.github.com/users/ericcf/events{/privacy}","received_events_url":"https://api.github.com/users/ericcf/received_events","type":"User","site_admin":false},"body":"Also, if you use `item: goal` here, you won't have to set the `item_type` attribute.","created_at":"2015-03-06T22:31:12Z","updated_at":"2015-03-06T22:31:12Z","html_url":"https://github.com/cbitstech/social_networking/pull/3#discussion_r25983935","pull_request_url":"https://api.github.com/repos/cbitstech/social_networking/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/comments/25983935"},"html":{"href":"https://github.com/cbitstech/social_networking/pull/3#discussion_r25983935"},"pull_request":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/cbitstech/social_networking/pulls/3","id":30672141,"html_url":"https://github.com/cbitstech/social_networking/pull/3","diff_url":"https://github.com/cbitstech/social_networking/pull/3.diff","patch_url":"https://github.com/cbitstech/social_networking/pull/3.patch","issue_url":"https://api.github.com/repos/cbitstech/social_networking/issues/3","number":3,"state":"open","locked":false,"title":"Add scopes to social models for patient dashboard","user":{"login":"gwensmu","id":5092040,"avatar_url":"https://avatars.githubusercontent.com/u/5092040?v=3","gravatar_id":"","url":"https://api.github.com/users/gwensmu","html_url":"https://github.com/gwensmu","followers_url":"https://api.github.com/users/gwensmu/followers","following_url":"https://api.github.com/users/gwensmu/following{/other_user}","gists_url":"https://api.github.com/users/gwensmu/gists{/gist_id}","starred_url":"https://api.github.com/users/gwensmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwensmu/subscriptions","organizations_url":"https://api.github.com/users/gwensmu/orgs","repos_url":"https://api.github.com/users/gwensmu/repos","events_url":"https://api.github.com/users/gwensmu/events{/privacy}","received_events_url":"https://api.github.com/users/gwensmu/received_events","type":"User","site_admin":false},"body":"* Add a scope to collect items for the current day\r\n* Add a scope to collect items for the last seven days\r\n* For nudges, likes, goals, comments, on the mind statements\r\n* Add unit tests for all scopes\r\n\r\n[#89516832]","created_at":"2015-03-06T19:27:38Z","updated_at":"2015-03-06T22:31:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4d627c43935bec9523049ccac82ac2030463889","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cbitstech/social_networking/pulls/3/commits","review_comments_url":"https://api.github.com/repos/cbitstech/social_networking/pulls/3/comments","review_comment_url":"https://api.github.com/repos/cbitstech/social_networking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cbitstech/social_networking/issues/3/comments","statuses_url":"https://api.github.com/repos/cbitstech/social_networking/statuses/608c3271eca020c4646f776eb1040dcb14957d1c","head":{"label":"cbitstech:gs-add-social-scopes","ref":"gs-add-social-scopes","sha":"608c3271eca020c4646f776eb1040dcb14957d1c","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":23404675,"name":"social_networking","full_name":"cbitstech/social_networking","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/social_networking","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/social_networking","forks_url":"https://api.github.com/repos/cbitstech/social_networking/forks","keys_url":"https://api.github.com/repos/cbitstech/social_networking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/social_networking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/social_networking/teams","hooks_url":"https://api.github.com/repos/cbitstech/social_networking/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/social_networking/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/social_networking/events","assignees_url":"https://api.github.com/repos/cbitstech/social_networking/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/social_networking/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/social_networking/tags","blobs_url":"https://api.github.com/repos/cbitstech/social_networking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/social_networking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/social_networking/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/social_networking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/social_networking/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/social_networking/languages","stargazers_url":"https://api.github.com/repos/cbitstech/social_networking/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/social_networking/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/social_networking/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/social_networking/subscription","commits_url":"https://api.github.com/repos/cbitstech/social_networking/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/social_networking/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/social_networking/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/social_networking/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/social_networking/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/social_networking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/social_networking/merges","archive_url":"https://api.github.com/repos/cbitstech/social_networking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/social_networking/downloads","issues_url":"https://api.github.com/repos/cbitstech/social_networking/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/social_networking/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/social_networking/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/social_networking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/social_networking/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/social_networking/releases{/id}","created_at":"2014-08-27T20:38:20Z","updated_at":"2015-03-02T21:40:05Z","pushed_at":"2015-03-06T21:47:26Z","git_url":"git://github.com/cbitstech/social_networking.git","ssh_url":"git@github.com:cbitstech/social_networking.git","clone_url":"https://github.com/cbitstech/social_networking.git","svn_url":"https://github.com/cbitstech/social_networking","homepage":null,"size":2584,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"cbitstech:master","ref":"master","sha":"4bacdf809d108ee191095d9acdf57c26183aca2c","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":23404675,"name":"social_networking","full_name":"cbitstech/social_networking","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/social_networking","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/social_networking","forks_url":"https://api.github.com/repos/cbitstech/social_networking/forks","keys_url":"https://api.github.com/repos/cbitstech/social_networking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/social_networking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/social_networking/teams","hooks_url":"https://api.github.com/repos/cbitstech/social_networking/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/social_networking/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/social_networking/events","assignees_url":"https://api.github.com/repos/cbitstech/social_networking/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/social_networking/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/social_networking/tags","blobs_url":"https://api.github.com/repos/cbitstech/social_networking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/social_networking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/social_networking/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/social_networking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/social_networking/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/social_networking/languages","stargazers_url":"https://api.github.com/repos/cbitstech/social_networking/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/social_networking/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/social_networking/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/social_networking/subscription","commits_url":"https://api.github.com/repos/cbitstech/social_networking/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/social_networking/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/social_networking/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/social_networking/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/social_networking/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/social_networking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/social_networking/merges","archive_url":"https://api.github.com/repos/cbitstech/social_networking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/social_networking/downloads","issues_url":"https://api.github.com/repos/cbitstech/social_networking/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/social_networking/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/social_networking/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/social_networking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/social_networking/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/social_networking/releases{/id}","created_at":"2014-08-27T20:38:20Z","updated_at":"2015-03-02T21:40:05Z","pushed_at":"2015-03-06T21:47:26Z","git_url":"git://github.com/cbitstech/social_networking.git","ssh_url":"git@github.com:cbitstech/social_networking.git","clone_url":"https://github.com/cbitstech/social_networking.git","svn_url":"https://github.com/cbitstech/social_networking","homepage":null,"size":2584,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/3"},"html":{"href":"https://github.com/cbitstech/social_networking/pull/3"},"issue":{"href":"https://api.github.com/repos/cbitstech/social_networking/issues/3"},"comments":{"href":"https://api.github.com/repos/cbitstech/social_networking/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/cbitstech/social_networking/statuses/608c3271eca020c4646f776eb1040dcb14957d1c"}}}}