{"action":"created","comment":{"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/comments/55149580","id":55149580,"diff_hunk":"@@ -15,6 +15,51 @@\n     end\n   end\n \n+  describe '#state' do\n+    let(:user) { FactoryGirl.create(:user) }\n+    let(:team) { FactoryGirl.create(:team) }\n+\n+    before do\n+      subject\n+    end\n+\n+    subject do\n+      user.roles.create team: team, name: role_name\n+    end\n+\n+    context 'when the user is added as a coach' do\n+      let(:role_name) { 'coach' }\n+\n+      it 'has the pending state' do\n+        expect(subject).to be_pending\n+      end\n+    end\n+\n+    context 'when the user is added as a student' do\n+      let(:role_name) { 'student' }\n+\n+      it 'has the pending state' do","path":"spec/models/role_spec.rb","position":null,"original_position":27,"commit_id":"da7d3243a68edcebc109c6958ed65a60a5d8e7b3","original_commit_id":"2bef3dcb04a9816b4ec34e45b1ef6031abcb6a6f","user":{"login":"alicetragedy","id":3143348,"avatar_url":"https://avatars.githubusercontent.com/u/3143348?v=3","gravatar_id":"","url":"https://api.github.com/users/alicetragedy","html_url":"https://github.com/alicetragedy","followers_url":"https://api.github.com/users/alicetragedy/followers","following_url":"https://api.github.com/users/alicetragedy/following{/other_user}","gists_url":"https://api.github.com/users/alicetragedy/gists{/gist_id}","starred_url":"https://api.github.com/users/alicetragedy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicetragedy/subscriptions","organizations_url":"https://api.github.com/users/alicetragedy/orgs","repos_url":"https://api.github.com/users/alicetragedy/repos","events_url":"https://api.github.com/users/alicetragedy/events{/privacy}","received_events_url":"https://api.github.com/users/alicetragedy/received_events","type":"User","site_admin":false},"body":"no worries, the same thing has happened to me SO often. Maybe that's why I caught it so quickly ;)","created_at":"2016-03-06T22:12:07Z","updated_at":"2016-03-06T22:12:07Z","html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/386#discussion_r55149580","pull_request_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/386","_links":{"self":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/comments/55149580"},"html":{"href":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/386#discussion_r55149580"},"pull_request":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/386"}}},"pull_request":{"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/386","id":61846440,"html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/386","diff_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/386.diff","patch_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/386.patch","issue_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/386","number":386,"state":"open","locked":false,"title":"Add coach role confirmation","user":{"login":"ramonh","id":656318,"avatar_url":"https://avatars.githubusercontent.com/u/656318?v=3","gravatar_id":"","url":"https://api.github.com/users/ramonh","html_url":"https://github.com/ramonh","followers_url":"https://api.github.com/users/ramonh/followers","following_url":"https://api.github.com/users/ramonh/following{/other_user}","gists_url":"https://api.github.com/users/ramonh/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonh/subscriptions","organizations_url":"https://api.github.com/users/ramonh/orgs","repos_url":"https://api.github.com/users/ramonh/repos","events_url":"https://api.github.com/users/ramonh/events{/privacy}","received_events_url":"https://api.github.com/users/ramonh/received_events","type":"User","site_admin":false},"body":"This is the next in steps toward resolving #363\r\n\r\nIt adds the following:\r\n\r\n- Displaying the confirmation status of coaches in the team's view\r\n- Coaches can confirm their status in the team's view\r\n- Adds the following line to the email: 'If you've been added as a coach, please note that you need to confirm your role as a coach.'","created_at":"2016-03-06T16:03:58Z","updated_at":"2016-03-06T22:12:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc8589c61361b71b3d5881dc40f04750f183ff8a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/386/commits","review_comments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/386/comments","review_comment_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/386/comments","statuses_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/statuses/da7d3243a68edcebc109c6958ed65a60a5d8e7b3","head":{"label":"rails-girls-summer-of-code:application-process-2016-revamp-teams","ref":"application-process-2016-revamp-teams","sha":"da7d3243a68edcebc109c6958ed65a60a5d8e7b3","user":{"login":"rails-girls-summer-of-code","id":4704447,"avatar_url":"https://avatars.githubusercontent.com/u/4704447?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-girls-summer-of-code","html_url":"https://github.com/rails-girls-summer-of-code","followers_url":"https://api.github.com/users/rails-girls-summer-of-code/followers","following_url":"https://api.github.com/users/rails-girls-summer-of-code/following{/other_user}","gists_url":"https://api.github.com/users/rails-girls-summer-of-code/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-girls-summer-of-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-girls-summer-of-code/subscriptions","organizations_url":"https://api.github.com/users/rails-girls-summer-of-code/orgs","repos_url":"https://api.github.com/users/rails-girls-summer-of-code/repos","events_url":"https://api.github.com/users/rails-girls-summer-of-code/events{/privacy}","received_events_url":"https://api.github.com/users/rails-girls-summer-of-code/received_events","type":"Organization","site_admin":false},"repo":{"id":10705327,"name":"rgsoc-teams","full_name":"rails-girls-summer-of-code/rgsoc-teams","owner":{"login":"rails-girls-summer-of-code","id":4704447,"avatar_url":"https://avatars.githubusercontent.com/u/4704447?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-girls-summer-of-code","html_url":"https://github.com/rails-girls-summer-of-code","followers_url":"https://api.github.com/users/rails-girls-summer-of-code/followers","following_url":"https://api.github.com/users/rails-girls-summer-of-code/following{/other_user}","gists_url":"https://api.github.com/users/rails-girls-summer-of-code/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-girls-summer-of-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-girls-summer-of-code/subscriptions","organizations_url":"https://api.github.com/users/rails-girls-summer-of-code/orgs","repos_url":"https://api.github.com/users/rails-girls-summer-of-code/repos","events_url":"https://api.github.com/users/rails-girls-summer-of-code/events{/privacy}","received_events_url":"https://api.github.com/users/rails-girls-summer-of-code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams","description":"Teams management and activity ","fork":false,"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams","forks_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/forks","keys_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/teams","hooks_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/hooks","issue_events_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/events{/number}","events_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/events","assignees_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/assignees{/user}","branches_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/branches{/branch}","tags_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/tags","blobs_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/statuses/{sha}","languages_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/languages","stargazers_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/stargazers","contributors_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/contributors","subscribers_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/subscribers","subscription_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/subscription","commits_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/contents/{+path}","compare_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/merges","archive_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/downloads","issues_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues{/number}","pulls_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls{/number}","milestones_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/milestones{/number}","notifications_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/labels{/name}","releases_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/releases{/id}","deployments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/deployments","created_at":"2013-06-15T11:13:22Z","updated_at":"2016-03-04T14:57:11Z","pushed_at":"2016-03-06T22:12:00Z","git_url":"git://github.com/rails-girls-summer-of-code/rgsoc-teams.git","ssh_url":"git@github.com:rails-girls-summer-of-code/rgsoc-teams.git","clone_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams.git","svn_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams","homepage":"https://teams.railsgirlssummerofcode.org","size":2399,"stargazers_count":23,"watchers_count":23,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":50,"forks":34,"open_issues":50,"watchers":23,"default_branch":"master"}},"base":{"label":"rails-girls-summer-of-code:application-process-2016","ref":"application-process-2016","sha":"df9d6fd4f79b6814856aa9b4d05ce96b077ecd93","user":{"login":"rails-girls-summer-of-code","id":4704447,"avatar_url":"https://avatars.githubusercontent.com/u/4704447?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-girls-summer-of-code","html_url":"https://github.com/rails-girls-summer-of-code","followers_url":"https://api.github.com/users/rails-girls-summer-of-code/followers","following_url":"https://api.github.com/users/rails-girls-summer-of-code/following{/other_user}","gists_url":"https://api.github.com/users/rails-girls-summer-of-code/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-girls-summer-of-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-girls-summer-of-code/subscriptions","organizations_url":"https://api.github.com/users/rails-girls-summer-of-code/orgs","repos_url":"https://api.github.com/users/rails-girls-summer-of-code/repos","events_url":"https://api.github.com/users/rails-girls-summer-of-code/events{/privacy}","received_events_url":"https://api.github.com/users/rails-girls-summer-of-code/received_events","type":"Organization","site_admin":false},"repo":{"id":10705327,"name":"rgsoc-teams","full_name":"rails-girls-summer-of-code/rgsoc-teams","owner":{"login":"rails-girls-summer-of-code","id":4704447,"avatar_url":"https://avatars.githubusercontent.com/u/4704447?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-girls-summer-of-code","html_url":"https://github.com/rails-girls-summer-of-code","followers_url":"https://api.github.com/users/rails-girls-summer-of-code/followers","following_url":"https://api.github.com/users/rails-girls-summer-of-code/following{/other_user}","gists_url":"https://api.github.com/users/rails-girls-summer-of-code/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-girls-summer-of-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-girls-summer-of-code/subscriptions","organizations_url":"https://api.github.com/users/rails-girls-summer-of-code/orgs","repos_url":"https://api.github.com/users/rails-girls-summer-of-code/repos","events_url":"https://api.github.com/users/rails-girls-summer-of-code/events{/privacy}","received_events_url":"https://api.github.com/users/rails-girls-summer-of-code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams","description":"Teams management and activity ","fork":false,"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams","forks_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/forks","keys_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/teams","hooks_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/hooks","issue_events_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/events{/number}","events_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/events","assignees_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/assignees{/user}","branches_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/branches{/branch}","tags_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/tags","blobs_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/statuses/{sha}","languages_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/languages","stargazers_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/stargazers","contributors_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/contributors","subscribers_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/subscribers","subscription_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/subscription","commits_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/contents/{+path}","compare_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/merges","archive_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/downloads","issues_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues{/number}","pulls_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls{/number}","milestones_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/milestones{/number}","notifications_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/labels{/name}","releases_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/releases{/id}","deployments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/deployments","created_at":"2013-06-15T11:13:22Z","updated_at":"2016-03-04T14:57:11Z","pushed_at":"2016-03-06T22:12:00Z","git_url":"git://github.com/rails-girls-summer-of-code/rgsoc-teams.git","ssh_url":"git@github.com:rails-girls-summer-of-code/rgsoc-teams.git","clone_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams.git","svn_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams","homepage":"https://teams.railsgirlssummerofcode.org","size":2399,"stargazers_count":23,"watchers_count":23,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":50,"forks":34,"open_issues":50,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/386"},"html":{"href":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/386"},"issue":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/386"},"comments":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/386/comments"},"review_comments":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/386/comments"},"review_comment":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/386/commits"},"statuses":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/statuses/da7d3243a68edcebc109c6958ed65a60a5d8e7b3"}}}}