{"action":"created","comment":{"url":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/comments/58826185","id":58826185,"diff_hunk":"@@ -0,0 +1,49 @@\n+require 'rails_helper'\n+\n+RSpec.describe ArticlesController do\n+  describe 'POST #create' do\n+    context 'saves' do\n+      it 'the new article' do\n+        expect do\n+          post :create, article: FG.attributes_for(:article)\n+        end.to change(Article, :count).by(1)\n+      end\n+      it 'redirect to :index' do\n+        post :create, article: attributes_for(:article)\n+        expect(response).to redirect_to articles_path(assigns([:articles]))\n+      end\n+    end\n+    context 'not saves' do\n+      it 'redirect to :new' do\n+        post :create, article: attributes_for(:article, title: nil)\n+        expect(response).to render_template :new\n+      end\n+    end\n+  end\n+  describe 'GET #index' do\n+    it 'render template index' do\n+      get :index\n+      expect(response).to render_template :index","path":"spec/controllers/articles_controller_spec.rb","position":26,"original_position":26,"commit_id":"d52a85802d77b99fc945e62ebe79a3e5d1a19623","original_commit_id":"d52a85802d77b99fc945e62ebe79a3e5d1a19623","user":{"login":"takanamito","id":1746111,"avatar_url":"https://avatars.githubusercontent.com/u/1746111?v=3","gravatar_id":"","url":"https://api.github.com/users/takanamito","html_url":"https://github.com/takanamito","followers_url":"https://api.github.com/users/takanamito/followers","following_url":"https://api.github.com/users/takanamito/following{/other_user}","gists_url":"https://api.github.com/users/takanamito/gists{/gist_id}","starred_url":"https://api.github.com/users/takanamito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takanamito/subscriptions","organizations_url":"https://api.github.com/users/takanamito/orgs","repos_url":"https://api.github.com/users/takanamito/repos","events_url":"https://api.github.com/users/takanamito/events{/privacy}","received_events_url":"https://api.github.com/users/takanamito/received_events","type":"User","site_admin":false},"body":"response statusが200で返ってるかのテストも合わせてよく書くとこが多いよー","created_at":"2016-04-07T06:55:01Z","updated_at":"2016-04-07T06:55:01Z","html_url":"https://github.com/WataruYamaura2/challenge/pull/4#discussion_r58826185","pull_request_url":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/comments/58826185"},"html":{"href":"https://github.com/WataruYamaura2/challenge/pull/4#discussion_r58826185"},"pull_request":{"href":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/4","id":65425579,"html_url":"https://github.com/WataruYamaura2/challenge/pull/4","diff_url":"https://github.com/WataruYamaura2/challenge/pull/4.diff","patch_url":"https://github.com/WataruYamaura2/challenge/pull/4.patch","issue_url":"https://api.github.com/repos/WataruYamaura2/challenge/issues/4","number":4,"state":"open","locked":false,"title":"【WIP】記事閲覧機能作成","user":{"login":"WataruYamaura2","id":13284549,"avatar_url":"https://avatars.githubusercontent.com/u/13284549?v=3","gravatar_id":"","url":"https://api.github.com/users/WataruYamaura2","html_url":"https://github.com/WataruYamaura2","followers_url":"https://api.github.com/users/WataruYamaura2/followers","following_url":"https://api.github.com/users/WataruYamaura2/following{/other_user}","gists_url":"https://api.github.com/users/WataruYamaura2/gists{/gist_id}","starred_url":"https://api.github.com/users/WataruYamaura2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WataruYamaura2/subscriptions","organizations_url":"https://api.github.com/users/WataruYamaura2/orgs","repos_url":"https://api.github.com/users/WataruYamaura2/repos","events_url":"https://api.github.com/users/WataruYamaura2/events{/privacy}","received_events_url":"https://api.github.com/users/WataruYamaura2/received_events","type":"User","site_admin":false},"body":"## TODOリスト\r\n- [ ] 記事閲覧機能の作成","created_at":"2016-04-06T08:10:35Z","updated_at":"2016-04-07T06:55:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dee2b330babb1165dfd2f2d1ede3dcebd496daab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/4/commits","review_comments_url":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/4/comments","review_comment_url":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WataruYamaura2/challenge/issues/4/comments","statuses_url":"https://api.github.com/repos/WataruYamaura2/challenge/statuses/d52a85802d77b99fc945e62ebe79a3e5d1a19623","head":{"label":"WataruYamaura2:Read","ref":"Read","sha":"d52a85802d77b99fc945e62ebe79a3e5d1a19623","user":{"login":"WataruYamaura2","id":13284549,"avatar_url":"https://avatars.githubusercontent.com/u/13284549?v=3","gravatar_id":"","url":"https://api.github.com/users/WataruYamaura2","html_url":"https://github.com/WataruYamaura2","followers_url":"https://api.github.com/users/WataruYamaura2/followers","following_url":"https://api.github.com/users/WataruYamaura2/following{/other_user}","gists_url":"https://api.github.com/users/WataruYamaura2/gists{/gist_id}","starred_url":"https://api.github.com/users/WataruYamaura2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WataruYamaura2/subscriptions","organizations_url":"https://api.github.com/users/WataruYamaura2/orgs","repos_url":"https://api.github.com/users/WataruYamaura2/repos","events_url":"https://api.github.com/users/WataruYamaura2/events{/privacy}","received_events_url":"https://api.github.com/users/WataruYamaura2/received_events","type":"User","site_admin":false},"repo":{"id":46252123,"name":"challenge","full_name":"WataruYamaura2/challenge","owner":{"login":"WataruYamaura2","id":13284549,"avatar_url":"https://avatars.githubusercontent.com/u/13284549?v=3","gravatar_id":"","url":"https://api.github.com/users/WataruYamaura2","html_url":"https://github.com/WataruYamaura2","followers_url":"https://api.github.com/users/WataruYamaura2/followers","following_url":"https://api.github.com/users/WataruYamaura2/following{/other_user}","gists_url":"https://api.github.com/users/WataruYamaura2/gists{/gist_id}","starred_url":"https://api.github.com/users/WataruYamaura2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WataruYamaura2/subscriptions","organizations_url":"https://api.github.com/users/WataruYamaura2/orgs","repos_url":"https://api.github.com/users/WataruYamaura2/repos","events_url":"https://api.github.com/users/WataruYamaura2/events{/privacy}","received_events_url":"https://api.github.com/users/WataruYamaura2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WataruYamaura2/challenge","description":"","fork":false,"url":"https://api.github.com/repos/WataruYamaura2/challenge","forks_url":"https://api.github.com/repos/WataruYamaura2/challenge/forks","keys_url":"https://api.github.com/repos/WataruYamaura2/challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WataruYamaura2/challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WataruYamaura2/challenge/teams","hooks_url":"https://api.github.com/repos/WataruYamaura2/challenge/hooks","issue_events_url":"https://api.github.com/repos/WataruYamaura2/challenge/issues/events{/number}","events_url":"https://api.github.com/repos/WataruYamaura2/challenge/events","assignees_url":"https://api.github.com/repos/WataruYamaura2/challenge/assignees{/user}","branches_url":"https://api.github.com/repos/WataruYamaura2/challenge/branches{/branch}","tags_url":"https://api.github.com/repos/WataruYamaura2/challenge/tags","blobs_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WataruYamaura2/challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/WataruYamaura2/challenge/languages","stargazers_url":"https://api.github.com/repos/WataruYamaura2/challenge/stargazers","contributors_url":"https://api.github.com/repos/WataruYamaura2/challenge/contributors","subscribers_url":"https://api.github.com/repos/WataruYamaura2/challenge/subscribers","subscription_url":"https://api.github.com/repos/WataruYamaura2/challenge/subscription","commits_url":"https://api.github.com/repos/WataruYamaura2/challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/WataruYamaura2/challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/WataruYamaura2/challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/WataruYamaura2/challenge/contents/{+path}","compare_url":"https://api.github.com/repos/WataruYamaura2/challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WataruYamaura2/challenge/merges","archive_url":"https://api.github.com/repos/WataruYamaura2/challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WataruYamaura2/challenge/downloads","issues_url":"https://api.github.com/repos/WataruYamaura2/challenge/issues{/number}","pulls_url":"https://api.github.com/repos/WataruYamaura2/challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/WataruYamaura2/challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/WataruYamaura2/challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WataruYamaura2/challenge/labels{/name}","releases_url":"https://api.github.com/repos/WataruYamaura2/challenge/releases{/id}","deployments_url":"https://api.github.com/repos/WataruYamaura2/challenge/deployments","created_at":"2015-11-16T04:31:50Z","updated_at":"2016-04-06T07:11:51Z","pushed_at":"2016-04-07T06:45:51Z","git_url":"git://github.com/WataruYamaura2/challenge.git","ssh_url":"git@github.com:WataruYamaura2/challenge.git","clone_url":"https://github.com/WataruYamaura2/challenge.git","svn_url":"https://github.com/WataruYamaura2/challenge","homepage":null,"size":47,"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":"WataruYamaura2:master","ref":"master","sha":"91d49e4c4bd60c85b26edfec84151fb611876d10","user":{"login":"WataruYamaura2","id":13284549,"avatar_url":"https://avatars.githubusercontent.com/u/13284549?v=3","gravatar_id":"","url":"https://api.github.com/users/WataruYamaura2","html_url":"https://github.com/WataruYamaura2","followers_url":"https://api.github.com/users/WataruYamaura2/followers","following_url":"https://api.github.com/users/WataruYamaura2/following{/other_user}","gists_url":"https://api.github.com/users/WataruYamaura2/gists{/gist_id}","starred_url":"https://api.github.com/users/WataruYamaura2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WataruYamaura2/subscriptions","organizations_url":"https://api.github.com/users/WataruYamaura2/orgs","repos_url":"https://api.github.com/users/WataruYamaura2/repos","events_url":"https://api.github.com/users/WataruYamaura2/events{/privacy}","received_events_url":"https://api.github.com/users/WataruYamaura2/received_events","type":"User","site_admin":false},"repo":{"id":46252123,"name":"challenge","full_name":"WataruYamaura2/challenge","owner":{"login":"WataruYamaura2","id":13284549,"avatar_url":"https://avatars.githubusercontent.com/u/13284549?v=3","gravatar_id":"","url":"https://api.github.com/users/WataruYamaura2","html_url":"https://github.com/WataruYamaura2","followers_url":"https://api.github.com/users/WataruYamaura2/followers","following_url":"https://api.github.com/users/WataruYamaura2/following{/other_user}","gists_url":"https://api.github.com/users/WataruYamaura2/gists{/gist_id}","starred_url":"https://api.github.com/users/WataruYamaura2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WataruYamaura2/subscriptions","organizations_url":"https://api.github.com/users/WataruYamaura2/orgs","repos_url":"https://api.github.com/users/WataruYamaura2/repos","events_url":"https://api.github.com/users/WataruYamaura2/events{/privacy}","received_events_url":"https://api.github.com/users/WataruYamaura2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WataruYamaura2/challenge","description":"","fork":false,"url":"https://api.github.com/repos/WataruYamaura2/challenge","forks_url":"https://api.github.com/repos/WataruYamaura2/challenge/forks","keys_url":"https://api.github.com/repos/WataruYamaura2/challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WataruYamaura2/challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WataruYamaura2/challenge/teams","hooks_url":"https://api.github.com/repos/WataruYamaura2/challenge/hooks","issue_events_url":"https://api.github.com/repos/WataruYamaura2/challenge/issues/events{/number}","events_url":"https://api.github.com/repos/WataruYamaura2/challenge/events","assignees_url":"https://api.github.com/repos/WataruYamaura2/challenge/assignees{/user}","branches_url":"https://api.github.com/repos/WataruYamaura2/challenge/branches{/branch}","tags_url":"https://api.github.com/repos/WataruYamaura2/challenge/tags","blobs_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WataruYamaura2/challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/WataruYamaura2/challenge/languages","stargazers_url":"https://api.github.com/repos/WataruYamaura2/challenge/stargazers","contributors_url":"https://api.github.com/repos/WataruYamaura2/challenge/contributors","subscribers_url":"https://api.github.com/repos/WataruYamaura2/challenge/subscribers","subscription_url":"https://api.github.com/repos/WataruYamaura2/challenge/subscription","commits_url":"https://api.github.com/repos/WataruYamaura2/challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/WataruYamaura2/challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/WataruYamaura2/challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/WataruYamaura2/challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/WataruYamaura2/challenge/contents/{+path}","compare_url":"https://api.github.com/repos/WataruYamaura2/challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WataruYamaura2/challenge/merges","archive_url":"https://api.github.com/repos/WataruYamaura2/challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WataruYamaura2/challenge/downloads","issues_url":"https://api.github.com/repos/WataruYamaura2/challenge/issues{/number}","pulls_url":"https://api.github.com/repos/WataruYamaura2/challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/WataruYamaura2/challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/WataruYamaura2/challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WataruYamaura2/challenge/labels{/name}","releases_url":"https://api.github.com/repos/WataruYamaura2/challenge/releases{/id}","deployments_url":"https://api.github.com/repos/WataruYamaura2/challenge/deployments","created_at":"2015-11-16T04:31:50Z","updated_at":"2016-04-06T07:11:51Z","pushed_at":"2016-04-07T06:45:51Z","git_url":"git://github.com/WataruYamaura2/challenge.git","ssh_url":"git@github.com:WataruYamaura2/challenge.git","clone_url":"https://github.com/WataruYamaura2/challenge.git","svn_url":"https://github.com/WataruYamaura2/challenge","homepage":null,"size":47,"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/WataruYamaura2/challenge/pulls/4"},"html":{"href":"https://github.com/WataruYamaura2/challenge/pull/4"},"issue":{"href":"https://api.github.com/repos/WataruYamaura2/challenge/issues/4"},"comments":{"href":"https://api.github.com/repos/WataruYamaura2/challenge/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WataruYamaura2/challenge/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/WataruYamaura2/challenge/statuses/d52a85802d77b99fc945e62ebe79a3e5d1a19623"}}}}