{"action":"created","comment":{"url":"https://api.github.com/repos/expertiza/expertiza/pulls/comments/228701875","pull_request_review_id":169044218,"id":228701875,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODcwMTg3NQ==","diff_hunk":"@@ -16,4 +18,82 @@\n       end\n     end\n   end\n+\n+  describe \"#includes?\" do\n+    context \"when an assignment team has one participant\" do\n+      it \"includes one participant\" do\n+        allow(team).to receive(:users).with(no_args).and_return([user])\n+        allow(AssignmentParticipant).to receive(:find_by).with(user_id: user.id, parent_id: team.parent_id).and_return(participant)\n+        expect(team.includes?(participant)).to eq true\n+      end\n+    end\n+    \n+    context \"when an assignment team has a user but no participants\" do\n+      it \"includes no participants\" do\n+        allow(team).to receive(:users).with(no_args).and_return([])\n+        allow(AssignmentParticipant).to receive(:find_by).with(user_id: user.id, parent_id: team.parent_id).and_return(nil)\n+        expect(team.includes?(participant)).to eq false\n+      end\n+    end\n+  end\n+\n+  describe \"#parent_model\" do\n+    it \"provides the name of the parent model\" do\n+      expect(team.parent_model).to eq \"Assignment\"\n+    end\n+  end\n+\n+  describe \".parent_model\" do\n+    it \"provides the instance of the parent model\" do\n+      allow(Assignment).to receive(:find).with(1).and_return(assignment)\n+      expect(AssignmentTeam.parent_model(1)).to eq assignment\n+    end\n+  end\n+\n+  describe \"#fullname\" do\n+    context \"when the team has a name\" do\n+      it \"provides the name of the class\" do\n+        team = build(:assignment_team, id: 1, name: \"abcd\")\n+        expect(team.fullname).to eq \"abcd\"\n+      end\n+    end\n+  end\n+\n+ describe \".remove_team_by_id\" do\n+    context \"when a team has an id\" do\n+      it \"delete the team by id\" do\n+        team = build(:assignment_team, id: 1)\n+\tallow(AssignmentTeam).to receive(:find).with(1).and_return(team)","path":"spec/models/assignment_team_spec.rb","position":61,"original_position":61,"commit_id":"3b6904b9ae7a8e8d738d74aba93ee21e04e548dd","original_commit_id":"3b6904b9ae7a8e8d738d74aba93ee21e04e548dd","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Tab detected.","created_at":"2018-10-27T05:18:17Z","updated_at":"2018-10-27T05:18:18Z","html_url":"https://github.com/expertiza/expertiza/pull/1228#discussion_r228701875","pull_request_url":"https://api.github.com/repos/expertiza/expertiza/pulls/1228","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/comments/228701875"},"html":{"href":"https://github.com/expertiza/expertiza/pull/1228#discussion_r228701875"},"pull_request":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/1228"}}},"pull_request":{"url":"https://api.github.com/repos/expertiza/expertiza/pulls/1228","id":224345129,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MzQ1MTI5","html_url":"https://github.com/expertiza/expertiza/pull/1228","diff_url":"https://github.com/expertiza/expertiza/pull/1228.diff","patch_url":"https://github.com/expertiza/expertiza/pull/1228.patch","issue_url":"https://api.github.com/repos/expertiza/expertiza/issues/1228","number":1228,"state":"open","locked":false,"title":"E1848. Write unit tests for assignment_team.rb","user":{"login":"kevacken","id":43817304,"node_id":"MDQ6VXNlcjQzODE3MzA0","avatar_url":"https://avatars1.githubusercontent.com/u/43817304?v=4","gravatar_id":"","url":"https://api.github.com/users/kevacken","html_url":"https://github.com/kevacken","followers_url":"https://api.github.com/users/kevacken/followers","following_url":"https://api.github.com/users/kevacken/following{/other_user}","gists_url":"https://api.github.com/users/kevacken/gists{/gist_id}","starred_url":"https://api.github.com/users/kevacken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevacken/subscriptions","organizations_url":"https://api.github.com/users/kevacken/orgs","repos_url":"https://api.github.com/users/kevacken/repos","events_url":"https://api.github.com/users/kevacken/events{/privacy}","received_events_url":"https://api.github.com/users/kevacken/received_events","type":"User","site_admin":false},"body":"We have written more unit tests for assignment_team.rb in assignment_team_spec.rb as part of program 3 for ECE 517 in the fall of 2018. @Winbobob is our mentor.\r\n","created_at":"2018-10-19T16:35:25Z","updated_at":"2018-10-27T05:18:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df16d9f1a268f9fd3b964a2aea00a3ac63b429e0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/expertiza/expertiza/milestones/39","html_url":"https://github.com/expertiza/expertiza/milestone/39","labels_url":"https://api.github.com/repos/expertiza/expertiza/milestones/39/labels","id":3753006,"node_id":"MDk6TWlsZXN0b25lMzc1MzAwNg==","number":39,"title":"CSC517 2018 Fall OSS Projects","description":"","creator":{"login":"Winbobob","id":7702035,"node_id":"MDQ6VXNlcjc3MDIwMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/7702035?v=4","gravatar_id":"","url":"https://api.github.com/users/Winbobob","html_url":"https://github.com/Winbobob","followers_url":"https://api.github.com/users/Winbobob/followers","following_url":"https://api.github.com/users/Winbobob/following{/other_user}","gists_url":"https://api.github.com/users/Winbobob/gists{/gist_id}","starred_url":"https://api.github.com/users/Winbobob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Winbobob/subscriptions","organizations_url":"https://api.github.com/users/Winbobob/orgs","repos_url":"https://api.github.com/users/Winbobob/repos","events_url":"https://api.github.com/users/Winbobob/events{/privacy}","received_events_url":"https://api.github.com/users/Winbobob/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":1,"state":"open","created_at":"2018-10-19T19:51:51Z","updated_at":"2018-10-24T03:41:31Z","due_on":"2018-11-30T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/expertiza/expertiza/pulls/1228/commits","review_comments_url":"https://api.github.com/repos/expertiza/expertiza/pulls/1228/comments","review_comment_url":"https://api.github.com/repos/expertiza/expertiza/pulls/comments{/number}","comments_url":"https://api.github.com/repos/expertiza/expertiza/issues/1228/comments","statuses_url":"https://api.github.com/repos/expertiza/expertiza/statuses/3b6904b9ae7a8e8d738d74aba93ee21e04e548dd","head":{"label":"kevacken:master","ref":"master","sha":"3b6904b9ae7a8e8d738d74aba93ee21e04e548dd","user":{"login":"kevacken","id":43817304,"node_id":"MDQ6VXNlcjQzODE3MzA0","avatar_url":"https://avatars1.githubusercontent.com/u/43817304?v=4","gravatar_id":"","url":"https://api.github.com/users/kevacken","html_url":"https://github.com/kevacken","followers_url":"https://api.github.com/users/kevacken/followers","following_url":"https://api.github.com/users/kevacken/following{/other_user}","gists_url":"https://api.github.com/users/kevacken/gists{/gist_id}","starred_url":"https://api.github.com/users/kevacken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevacken/subscriptions","organizations_url":"https://api.github.com/users/kevacken/orgs","repos_url":"https://api.github.com/users/kevacken/repos","events_url":"https://api.github.com/users/kevacken/events{/privacy}","received_events_url":"https://api.github.com/users/kevacken/received_events","type":"User","site_admin":false},"repo":{"id":151419534,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE0MTk1MzQ=","name":"expertiza","full_name":"kevacken/expertiza","private":false,"owner":{"login":"kevacken","id":43817304,"node_id":"MDQ6VXNlcjQzODE3MzA0","avatar_url":"https://avatars1.githubusercontent.com/u/43817304?v=4","gravatar_id":"","url":"https://api.github.com/users/kevacken","html_url":"https://github.com/kevacken","followers_url":"https://api.github.com/users/kevacken/followers","following_url":"https://api.github.com/users/kevacken/following{/other_user}","gists_url":"https://api.github.com/users/kevacken/gists{/gist_id}","starred_url":"https://api.github.com/users/kevacken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevacken/subscriptions","organizations_url":"https://api.github.com/users/kevacken/orgs","repos_url":"https://api.github.com/users/kevacken/repos","events_url":"https://api.github.com/users/kevacken/events{/privacy}","received_events_url":"https://api.github.com/users/kevacken/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kevacken/expertiza","description":"Expertiza is a web application through which students can submit and peer-review learning objects (articles, code, web sites, etc).  The Expertiza project is supported by the National Science Foundation.","fork":true,"url":"https://api.github.com/repos/kevacken/expertiza","forks_url":"https://api.github.com/repos/kevacken/expertiza/forks","keys_url":"https://api.github.com/repos/kevacken/expertiza/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevacken/expertiza/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevacken/expertiza/teams","hooks_url":"https://api.github.com/repos/kevacken/expertiza/hooks","issue_events_url":"https://api.github.com/repos/kevacken/expertiza/issues/events{/number}","events_url":"https://api.github.com/repos/kevacken/expertiza/events","assignees_url":"https://api.github.com/repos/kevacken/expertiza/assignees{/user}","branches_url":"https://api.github.com/repos/kevacken/expertiza/branches{/branch}","tags_url":"https://api.github.com/repos/kevacken/expertiza/tags","blobs_url":"https://api.github.com/repos/kevacken/expertiza/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevacken/expertiza/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevacken/expertiza/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevacken/expertiza/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevacken/expertiza/statuses/{sha}","languages_url":"https://api.github.com/repos/kevacken/expertiza/languages","stargazers_url":"https://api.github.com/repos/kevacken/expertiza/stargazers","contributors_url":"https://api.github.com/repos/kevacken/expertiza/contributors","subscribers_url":"https://api.github.com/repos/kevacken/expertiza/subscribers","subscription_url":"https://api.github.com/repos/kevacken/expertiza/subscription","commits_url":"https://api.github.com/repos/kevacken/expertiza/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevacken/expertiza/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevacken/expertiza/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevacken/expertiza/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevacken/expertiza/contents/{+path}","compare_url":"https://api.github.com/repos/kevacken/expertiza/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevacken/expertiza/merges","archive_url":"https://api.github.com/repos/kevacken/expertiza/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevacken/expertiza/downloads","issues_url":"https://api.github.com/repos/kevacken/expertiza/issues{/number}","pulls_url":"https://api.github.com/repos/kevacken/expertiza/pulls{/number}","milestones_url":"https://api.github.com/repos/kevacken/expertiza/milestones{/number}","notifications_url":"https://api.github.com/repos/kevacken/expertiza/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevacken/expertiza/labels{/name}","releases_url":"https://api.github.com/repos/kevacken/expertiza/releases{/id}","deployments_url":"https://api.github.com/repos/kevacken/expertiza/deployments","created_at":"2018-10-03T13:45:23Z","updated_at":"2018-10-27T04:59:31Z","pushed_at":"2018-10-27T04:59:29Z","git_url":"git://github.com/kevacken/expertiza.git","ssh_url":"git@github.com:kevacken/expertiza.git","clone_url":"https://github.com/kevacken/expertiza.git","svn_url":"https://github.com/kevacken/expertiza","homepage":"http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation","size":53294,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"expertiza:master","ref":"master","sha":"ad9fa88d5cc0d24d90a558ccde12b2b88b13706f","user":{"login":"expertiza","id":427458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzQ1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/427458?v=4","gravatar_id":"","url":"https://api.github.com/users/expertiza","html_url":"https://github.com/expertiza","followers_url":"https://api.github.com/users/expertiza/followers","following_url":"https://api.github.com/users/expertiza/following{/other_user}","gists_url":"https://api.github.com/users/expertiza/gists{/gist_id}","starred_url":"https://api.github.com/users/expertiza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expertiza/subscriptions","organizations_url":"https://api.github.com/users/expertiza/orgs","repos_url":"https://api.github.com/users/expertiza/repos","events_url":"https://api.github.com/users/expertiza/events{/privacy}","received_events_url":"https://api.github.com/users/expertiza/received_events","type":"Organization","site_admin":false},"repo":{"id":962564,"node_id":"MDEwOlJlcG9zaXRvcnk5NjI1NjQ=","name":"expertiza","full_name":"expertiza/expertiza","private":false,"owner":{"login":"expertiza","id":427458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzQ1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/427458?v=4","gravatar_id":"","url":"https://api.github.com/users/expertiza","html_url":"https://github.com/expertiza","followers_url":"https://api.github.com/users/expertiza/followers","following_url":"https://api.github.com/users/expertiza/following{/other_user}","gists_url":"https://api.github.com/users/expertiza/gists{/gist_id}","starred_url":"https://api.github.com/users/expertiza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expertiza/subscriptions","organizations_url":"https://api.github.com/users/expertiza/orgs","repos_url":"https://api.github.com/users/expertiza/repos","events_url":"https://api.github.com/users/expertiza/events{/privacy}","received_events_url":"https://api.github.com/users/expertiza/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/expertiza/expertiza","description":"Expertiza is a web application through which students can submit and peer-review learning objects (articles, code, web sites, etc).  The Expertiza project is supported by the National Science Foundation.","fork":false,"url":"https://api.github.com/repos/expertiza/expertiza","forks_url":"https://api.github.com/repos/expertiza/expertiza/forks","keys_url":"https://api.github.com/repos/expertiza/expertiza/keys{/key_id}","collaborators_url":"https://api.github.com/repos/expertiza/expertiza/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/expertiza/expertiza/teams","hooks_url":"https://api.github.com/repos/expertiza/expertiza/hooks","issue_events_url":"https://api.github.com/repos/expertiza/expertiza/issues/events{/number}","events_url":"https://api.github.com/repos/expertiza/expertiza/events","assignees_url":"https://api.github.com/repos/expertiza/expertiza/assignees{/user}","branches_url":"https://api.github.com/repos/expertiza/expertiza/branches{/branch}","tags_url":"https://api.github.com/repos/expertiza/expertiza/tags","blobs_url":"https://api.github.com/repos/expertiza/expertiza/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/expertiza/expertiza/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/expertiza/expertiza/git/refs{/sha}","trees_url":"https://api.github.com/repos/expertiza/expertiza/git/trees{/sha}","statuses_url":"https://api.github.com/repos/expertiza/expertiza/statuses/{sha}","languages_url":"https://api.github.com/repos/expertiza/expertiza/languages","stargazers_url":"https://api.github.com/repos/expertiza/expertiza/stargazers","contributors_url":"https://api.github.com/repos/expertiza/expertiza/contributors","subscribers_url":"https://api.github.com/repos/expertiza/expertiza/subscribers","subscription_url":"https://api.github.com/repos/expertiza/expertiza/subscription","commits_url":"https://api.github.com/repos/expertiza/expertiza/commits{/sha}","git_commits_url":"https://api.github.com/repos/expertiza/expertiza/git/commits{/sha}","comments_url":"https://api.github.com/repos/expertiza/expertiza/comments{/number}","issue_comment_url":"https://api.github.com/repos/expertiza/expertiza/issues/comments{/number}","contents_url":"https://api.github.com/repos/expertiza/expertiza/contents/{+path}","compare_url":"https://api.github.com/repos/expertiza/expertiza/compare/{base}...{head}","merges_url":"https://api.github.com/repos/expertiza/expertiza/merges","archive_url":"https://api.github.com/repos/expertiza/expertiza/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/expertiza/expertiza/downloads","issues_url":"https://api.github.com/repos/expertiza/expertiza/issues{/number}","pulls_url":"https://api.github.com/repos/expertiza/expertiza/pulls{/number}","milestones_url":"https://api.github.com/repos/expertiza/expertiza/milestones{/number}","notifications_url":"https://api.github.com/repos/expertiza/expertiza/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/expertiza/expertiza/labels{/name}","releases_url":"https://api.github.com/repos/expertiza/expertiza/releases{/id}","deployments_url":"https://api.github.com/repos/expertiza/expertiza/deployments","created_at":"2010-10-05T03:37:29Z","updated_at":"2018-10-26T20:59:54Z","pushed_at":"2018-10-27T04:59:30Z","git_url":"git://github.com/expertiza/expertiza.git","ssh_url":"git@github.com:expertiza/expertiza.git","clone_url":"https://github.com/expertiza/expertiza.git","svn_url":"https://github.com/expertiza/expertiza","homepage":"http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation","size":53464,"stargazers_count":144,"watchers_count":144,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":772,"mirror_url":null,"archived":false,"open_issues_count":146,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":772,"open_issues":146,"watchers":144,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/1228"},"html":{"href":"https://github.com/expertiza/expertiza/pull/1228"},"issue":{"href":"https://api.github.com/repos/expertiza/expertiza/issues/1228"},"comments":{"href":"https://api.github.com/repos/expertiza/expertiza/issues/1228/comments"},"review_comments":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/1228/comments"},"review_comment":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/1228/commits"},"statuses":{"href":"https://api.github.com/repos/expertiza/expertiza/statuses/3b6904b9ae7a8e8d738d74aba93ee21e04e548dd"}},"author_association":"NONE"}}
{"actor":{"display_login":"codeclimate"}}