{"action":"created","comment":{"url":"https://api.github.com/repos/DaikiInaba/protospace/pulls/comments/72603499","id":72603499,"diff_hunk":"@@ -0,0 +1,76 @@\n+require 'rails_helper'\r\n+\r\n+describe UsersController do\r\n+\r\n+  describe 'with user login' do\r\n+    login_user\r\n+    describe 'GET #show' do\r\n+      let!(:user){create(:user)}\r\n+      it \"assigns the requested to @user\" do\r\n+        get :show, id: user\r\n+        expect(assigns(:user)).to eq user\r\n+      end\r\n+\r\n+      it \"renders the :show template\" do\r\n+        get :show, id: user\r\n+        expect(response).to render_template :show\r\n+      end\r\n+    end\r\n+\r\n+    describe 'GET #edit' do\r\n+      let!(:user){controller.current_user}\r\n+      it \"assigns the requested user to @user\" do\r\n+        get :edit, id: user\r\n+        expect(assigns(:user)).to eq user\r\n+      end\r\n+\r\n+      it \"renders the :edit template\" do\r\n+        get :edit, id: user\r\n+        expect(response).to render_template :edit\r\n+      end\r\n+    end\r\n+\r\n+    describe 'PATCH #update' do\r\n+      let!(:user){controller.current_user}\r\n+      it \"locates the requersted @user\" do\r","path":"spec/controllers/users_controller_spec.rb","position":35,"original_position":35,"commit_id":"5c6175c2ecc0862bb86c73c626259578f683688e","original_commit_id":"5c6175c2ecc0862bb86c73c626259578f683688e","user":{"login":"ShingoYokoyama","id":16603317,"avatar_url":"https://avatars.githubusercontent.com/u/16603317?v=3","gravatar_id":"","url":"https://api.github.com/users/ShingoYokoyama","html_url":"https://github.com/ShingoYokoyama","followers_url":"https://api.github.com/users/ShingoYokoyama/followers","following_url":"https://api.github.com/users/ShingoYokoyama/following{/other_user}","gists_url":"https://api.github.com/users/ShingoYokoyama/gists{/gist_id}","starred_url":"https://api.github.com/users/ShingoYokoyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShingoYokoyama/subscriptions","organizations_url":"https://api.github.com/users/ShingoYokoyama/orgs","repos_url":"https://api.github.com/users/ShingoYokoyama/repos","events_url":"https://api.github.com/users/ShingoYokoyama/events{/privacy}","received_events_url":"https://api.github.com/users/ShingoYokoyama/received_events","type":"User","site_admin":false},"body":"タイポ？","created_at":"2016-07-28T11:10:50Z","updated_at":"2016-07-28T11:10:50Z","html_url":"https://github.com/DaikiInaba/protospace/pull/19#discussion_r72603499","pull_request_url":"https://api.github.com/repos/DaikiInaba/protospace/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/DaikiInaba/protospace/pulls/comments/72603499"},"html":{"href":"https://github.com/DaikiInaba/protospace/pull/19#discussion_r72603499"},"pull_request":{"href":"https://api.github.com/repos/DaikiInaba/protospace/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/DaikiInaba/protospace/pulls/19","id":78588470,"html_url":"https://github.com/DaikiInaba/protospace/pull/19","diff_url":"https://github.com/DaikiInaba/protospace/pull/19.diff","patch_url":"https://github.com/DaikiInaba/protospace/pull/19.patch","issue_url":"https://api.github.com/repos/DaikiInaba/protospace/issues/19","number":19,"state":"open","locked":false,"title":"Controller unit test","user":{"login":"DaikiInaba","id":19761679,"avatar_url":"https://avatars.githubusercontent.com/u/19761679?v=3","gravatar_id":"","url":"https://api.github.com/users/DaikiInaba","html_url":"https://github.com/DaikiInaba","followers_url":"https://api.github.com/users/DaikiInaba/followers","following_url":"https://api.github.com/users/DaikiInaba/following{/other_user}","gists_url":"https://api.github.com/users/DaikiInaba/gists{/gist_id}","starred_url":"https://api.github.com/users/DaikiInaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaikiInaba/subscriptions","organizations_url":"https://api.github.com/users/DaikiInaba/orgs","repos_url":"https://api.github.com/users/DaikiInaba/repos","events_url":"https://api.github.com/users/DaikiInaba/events{/privacy}","received_events_url":"https://api.github.com/users/DaikiInaba/received_events","type":"User","site_admin":false},"body":"# WHAT\r\n* Prototypesコントローラ\r\n* Usersコントローラ\r\nのテスト\r\n\r\n# WHY\r\nテストを行うことでproduction環境での予期せぬ不具合を防ぐため","created_at":"2016-07-24T03:12:21Z","updated_at":"2016-07-28T11:10:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1d20f18a7e2e757d45fa07d5c0ad13658c8ddd9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DaikiInaba/protospace/pulls/19/commits","review_comments_url":"https://api.github.com/repos/DaikiInaba/protospace/pulls/19/comments","review_comment_url":"https://api.github.com/repos/DaikiInaba/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DaikiInaba/protospace/issues/19/comments","statuses_url":"https://api.github.com/repos/DaikiInaba/protospace/statuses/5c6175c2ecc0862bb86c73c626259578f683688e","head":{"label":"DaikiInaba:controller_unit","ref":"controller_unit","sha":"5c6175c2ecc0862bb86c73c626259578f683688e","user":{"login":"DaikiInaba","id":19761679,"avatar_url":"https://avatars.githubusercontent.com/u/19761679?v=3","gravatar_id":"","url":"https://api.github.com/users/DaikiInaba","html_url":"https://github.com/DaikiInaba","followers_url":"https://api.github.com/users/DaikiInaba/followers","following_url":"https://api.github.com/users/DaikiInaba/following{/other_user}","gists_url":"https://api.github.com/users/DaikiInaba/gists{/gist_id}","starred_url":"https://api.github.com/users/DaikiInaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaikiInaba/subscriptions","organizations_url":"https://api.github.com/users/DaikiInaba/orgs","repos_url":"https://api.github.com/users/DaikiInaba/repos","events_url":"https://api.github.com/users/DaikiInaba/events{/privacy}","received_events_url":"https://api.github.com/users/DaikiInaba/received_events","type":"User","site_admin":false},"repo":{"id":60463927,"name":"protospace","full_name":"DaikiInaba/protospace","owner":{"login":"DaikiInaba","id":19761679,"avatar_url":"https://avatars.githubusercontent.com/u/19761679?v=3","gravatar_id":"","url":"https://api.github.com/users/DaikiInaba","html_url":"https://github.com/DaikiInaba","followers_url":"https://api.github.com/users/DaikiInaba/followers","following_url":"https://api.github.com/users/DaikiInaba/following{/other_user}","gists_url":"https://api.github.com/users/DaikiInaba/gists{/gist_id}","starred_url":"https://api.github.com/users/DaikiInaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaikiInaba/subscriptions","organizations_url":"https://api.github.com/users/DaikiInaba/orgs","repos_url":"https://api.github.com/users/DaikiInaba/repos","events_url":"https://api.github.com/users/DaikiInaba/events{/privacy}","received_events_url":"https://api.github.com/users/DaikiInaba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DaikiInaba/protospace","description":"","fork":false,"url":"https://api.github.com/repos/DaikiInaba/protospace","forks_url":"https://api.github.com/repos/DaikiInaba/protospace/forks","keys_url":"https://api.github.com/repos/DaikiInaba/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DaikiInaba/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DaikiInaba/protospace/teams","hooks_url":"https://api.github.com/repos/DaikiInaba/protospace/hooks","issue_events_url":"https://api.github.com/repos/DaikiInaba/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/DaikiInaba/protospace/events","assignees_url":"https://api.github.com/repos/DaikiInaba/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/DaikiInaba/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/DaikiInaba/protospace/tags","blobs_url":"https://api.github.com/repos/DaikiInaba/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DaikiInaba/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DaikiInaba/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/DaikiInaba/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DaikiInaba/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/DaikiInaba/protospace/languages","stargazers_url":"https://api.github.com/repos/DaikiInaba/protospace/stargazers","contributors_url":"https://api.github.com/repos/DaikiInaba/protospace/contributors","subscribers_url":"https://api.github.com/repos/DaikiInaba/protospace/subscribers","subscription_url":"https://api.github.com/repos/DaikiInaba/protospace/subscription","commits_url":"https://api.github.com/repos/DaikiInaba/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/DaikiInaba/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/DaikiInaba/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/DaikiInaba/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/DaikiInaba/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/DaikiInaba/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DaikiInaba/protospace/merges","archive_url":"https://api.github.com/repos/DaikiInaba/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DaikiInaba/protospace/downloads","issues_url":"https://api.github.com/repos/DaikiInaba/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/DaikiInaba/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/DaikiInaba/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/DaikiInaba/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DaikiInaba/protospace/labels{/name}","releases_url":"https://api.github.com/repos/DaikiInaba/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/DaikiInaba/protospace/deployments","created_at":"2016-06-05T14:24:52Z","updated_at":"2016-06-14T15:23:25Z","pushed_at":"2016-07-24T03:12:21Z","git_url":"git://github.com/DaikiInaba/protospace.git","ssh_url":"git@github.com:DaikiInaba/protospace.git","clone_url":"https://github.com/DaikiInaba/protospace.git","svn_url":"https://github.com/DaikiInaba/protospace","homepage":null,"size":638,"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":"DaikiInaba:master","ref":"master","sha":"465143b86103ad6dfb35945800edb0eaf29dc6eb","user":{"login":"DaikiInaba","id":19761679,"avatar_url":"https://avatars.githubusercontent.com/u/19761679?v=3","gravatar_id":"","url":"https://api.github.com/users/DaikiInaba","html_url":"https://github.com/DaikiInaba","followers_url":"https://api.github.com/users/DaikiInaba/followers","following_url":"https://api.github.com/users/DaikiInaba/following{/other_user}","gists_url":"https://api.github.com/users/DaikiInaba/gists{/gist_id}","starred_url":"https://api.github.com/users/DaikiInaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaikiInaba/subscriptions","organizations_url":"https://api.github.com/users/DaikiInaba/orgs","repos_url":"https://api.github.com/users/DaikiInaba/repos","events_url":"https://api.github.com/users/DaikiInaba/events{/privacy}","received_events_url":"https://api.github.com/users/DaikiInaba/received_events","type":"User","site_admin":false},"repo":{"id":60463927,"name":"protospace","full_name":"DaikiInaba/protospace","owner":{"login":"DaikiInaba","id":19761679,"avatar_url":"https://avatars.githubusercontent.com/u/19761679?v=3","gravatar_id":"","url":"https://api.github.com/users/DaikiInaba","html_url":"https://github.com/DaikiInaba","followers_url":"https://api.github.com/users/DaikiInaba/followers","following_url":"https://api.github.com/users/DaikiInaba/following{/other_user}","gists_url":"https://api.github.com/users/DaikiInaba/gists{/gist_id}","starred_url":"https://api.github.com/users/DaikiInaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaikiInaba/subscriptions","organizations_url":"https://api.github.com/users/DaikiInaba/orgs","repos_url":"https://api.github.com/users/DaikiInaba/repos","events_url":"https://api.github.com/users/DaikiInaba/events{/privacy}","received_events_url":"https://api.github.com/users/DaikiInaba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DaikiInaba/protospace","description":"","fork":false,"url":"https://api.github.com/repos/DaikiInaba/protospace","forks_url":"https://api.github.com/repos/DaikiInaba/protospace/forks","keys_url":"https://api.github.com/repos/DaikiInaba/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DaikiInaba/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DaikiInaba/protospace/teams","hooks_url":"https://api.github.com/repos/DaikiInaba/protospace/hooks","issue_events_url":"https://api.github.com/repos/DaikiInaba/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/DaikiInaba/protospace/events","assignees_url":"https://api.github.com/repos/DaikiInaba/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/DaikiInaba/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/DaikiInaba/protospace/tags","blobs_url":"https://api.github.com/repos/DaikiInaba/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DaikiInaba/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DaikiInaba/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/DaikiInaba/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DaikiInaba/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/DaikiInaba/protospace/languages","stargazers_url":"https://api.github.com/repos/DaikiInaba/protospace/stargazers","contributors_url":"https://api.github.com/repos/DaikiInaba/protospace/contributors","subscribers_url":"https://api.github.com/repos/DaikiInaba/protospace/subscribers","subscription_url":"https://api.github.com/repos/DaikiInaba/protospace/subscription","commits_url":"https://api.github.com/repos/DaikiInaba/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/DaikiInaba/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/DaikiInaba/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/DaikiInaba/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/DaikiInaba/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/DaikiInaba/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DaikiInaba/protospace/merges","archive_url":"https://api.github.com/repos/DaikiInaba/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DaikiInaba/protospace/downloads","issues_url":"https://api.github.com/repos/DaikiInaba/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/DaikiInaba/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/DaikiInaba/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/DaikiInaba/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DaikiInaba/protospace/labels{/name}","releases_url":"https://api.github.com/repos/DaikiInaba/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/DaikiInaba/protospace/deployments","created_at":"2016-06-05T14:24:52Z","updated_at":"2016-06-14T15:23:25Z","pushed_at":"2016-07-24T03:12:21Z","git_url":"git://github.com/DaikiInaba/protospace.git","ssh_url":"git@github.com:DaikiInaba/protospace.git","clone_url":"https://github.com/DaikiInaba/protospace.git","svn_url":"https://github.com/DaikiInaba/protospace","homepage":null,"size":638,"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/DaikiInaba/protospace/pulls/19"},"html":{"href":"https://github.com/DaikiInaba/protospace/pull/19"},"issue":{"href":"https://api.github.com/repos/DaikiInaba/protospace/issues/19"},"comments":{"href":"https://api.github.com/repos/DaikiInaba/protospace/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/DaikiInaba/protospace/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/DaikiInaba/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DaikiInaba/protospace/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/DaikiInaba/protospace/statuses/5c6175c2ecc0862bb86c73c626259578f683688e"}}}}
{"actor":{"display_login":"ShingoYokoyama"}}