{"action":"created","comment":{"url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/comments/211014576","pull_request_review_id":147358020,"id":211014576,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTAxNDU3Ng==","diff_hunk":"@@ -0,0 +1,111 @@\n+require 'spec_helper'\n+\n+RSpec.describe PostsController, :type => :controller do\n+\n+  describe do\n+    login_user\n+    context 'action index' do\n+      let(:post) { FactoryBot.create(:post, title: 'qwert', priority: '5') }\n+\n+      before do\n+        get :index\n+      end\n+      it 'assigns @posts' do\n+        expect(assigns(:posts)).to eq([post])\n+      end\n+\n+      it 'renders the index template' do\n+        get :index\n+        expect(response).to render_template('index')","path":"spec/controllers/posts_controller_spec.rb","position":19,"original_position":19,"commit_id":"ab1f5ed3223b7184399ddef9afddc7446368d9ce","original_commit_id":"ab1f5ed3223b7184399ddef9afddc7446368d9ce","user":{"login":"eugenekorpan","id":363108,"node_id":"MDQ6VXNlcjM2MzEwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/363108?v=4","gravatar_id":"","url":"https://api.github.com/users/eugenekorpan","html_url":"https://github.com/eugenekorpan","followers_url":"https://api.github.com/users/eugenekorpan/followers","following_url":"https://api.github.com/users/eugenekorpan/following{/other_user}","gists_url":"https://api.github.com/users/eugenekorpan/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenekorpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenekorpan/subscriptions","organizations_url":"https://api.github.com/users/eugenekorpan/orgs","repos_url":"https://api.github.com/users/eugenekorpan/repos","events_url":"https://api.github.com/users/eugenekorpan/events{/privacy}","received_events_url":"https://api.github.com/users/eugenekorpan/received_events","type":"User","site_admin":false},"body":"думаю це перевірити можна і в одному тесті\r\nне потрбно на кожеш expect свій тест писати","created_at":"2018-08-17T19:43:43Z","updated_at":"2018-08-17T19:43:43Z","html_url":"https://github.com/VitalikYaroviy/RubyOnRails/pull/8#discussion_r211014576","pull_request_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/comments/211014576"},"html":{"href":"https://github.com/VitalikYaroviy/RubyOnRails/pull/8#discussion_r211014576"},"pull_request":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/8","id":208820902,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4ODIwOTAy","html_url":"https://github.com/VitalikYaroviy/RubyOnRails/pull/8","diff_url":"https://github.com/VitalikYaroviy/RubyOnRails/pull/8.diff","patch_url":"https://github.com/VitalikYaroviy/RubyOnRails/pull/8.patch","issue_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues/8","number":8,"state":"open","locked":false,"title":"added rspec test to models","user":{"login":"VitalikYaroviy","id":35693023,"node_id":"MDQ6VXNlcjM1NjkzMDIz","avatar_url":"https://avatars2.githubusercontent.com/u/35693023?v=4","gravatar_id":"","url":"https://api.github.com/users/VitalikYaroviy","html_url":"https://github.com/VitalikYaroviy","followers_url":"https://api.github.com/users/VitalikYaroviy/followers","following_url":"https://api.github.com/users/VitalikYaroviy/following{/other_user}","gists_url":"https://api.github.com/users/VitalikYaroviy/gists{/gist_id}","starred_url":"https://api.github.com/users/VitalikYaroviy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitalikYaroviy/subscriptions","organizations_url":"https://api.github.com/users/VitalikYaroviy/orgs","repos_url":"https://api.github.com/users/VitalikYaroviy/repos","events_url":"https://api.github.com/users/VitalikYaroviy/events{/privacy}","received_events_url":"https://api.github.com/users/VitalikYaroviy/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/O0CKWDf5","created_at":"2018-08-16T10:58:50Z","updated_at":"2018-08-17T19:43:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eee078928e2e3034bc2e55f55544249be007bad6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/8/commits","review_comments_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/8/comments","review_comment_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues/8/comments","statuses_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/statuses/ab1f5ed3223b7184399ddef9afddc7446368d9ce","head":{"label":"VitalikYaroviy:simplecov","ref":"simplecov","sha":"ab1f5ed3223b7184399ddef9afddc7446368d9ce","user":{"login":"VitalikYaroviy","id":35693023,"node_id":"MDQ6VXNlcjM1NjkzMDIz","avatar_url":"https://avatars2.githubusercontent.com/u/35693023?v=4","gravatar_id":"","url":"https://api.github.com/users/VitalikYaroviy","html_url":"https://github.com/VitalikYaroviy","followers_url":"https://api.github.com/users/VitalikYaroviy/followers","following_url":"https://api.github.com/users/VitalikYaroviy/following{/other_user}","gists_url":"https://api.github.com/users/VitalikYaroviy/gists{/gist_id}","starred_url":"https://api.github.com/users/VitalikYaroviy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitalikYaroviy/subscriptions","organizations_url":"https://api.github.com/users/VitalikYaroviy/orgs","repos_url":"https://api.github.com/users/VitalikYaroviy/repos","events_url":"https://api.github.com/users/VitalikYaroviy/events{/privacy}","received_events_url":"https://api.github.com/users/VitalikYaroviy/received_events","type":"User","site_admin":false},"repo":{"id":142753550,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI3NTM1NTA=","name":"RubyOnRails","full_name":"VitalikYaroviy/RubyOnRails","owner":{"login":"VitalikYaroviy","id":35693023,"node_id":"MDQ6VXNlcjM1NjkzMDIz","avatar_url":"https://avatars2.githubusercontent.com/u/35693023?v=4","gravatar_id":"","url":"https://api.github.com/users/VitalikYaroviy","html_url":"https://github.com/VitalikYaroviy","followers_url":"https://api.github.com/users/VitalikYaroviy/followers","following_url":"https://api.github.com/users/VitalikYaroviy/following{/other_user}","gists_url":"https://api.github.com/users/VitalikYaroviy/gists{/gist_id}","starred_url":"https://api.github.com/users/VitalikYaroviy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitalikYaroviy/subscriptions","organizations_url":"https://api.github.com/users/VitalikYaroviy/orgs","repos_url":"https://api.github.com/users/VitalikYaroviy/repos","events_url":"https://api.github.com/users/VitalikYaroviy/events{/privacy}","received_events_url":"https://api.github.com/users/VitalikYaroviy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VitalikYaroviy/RubyOnRails","description":null,"fork":false,"url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails","forks_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/forks","keys_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/teams","hooks_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/hooks","issue_events_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues/events{/number}","events_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/events","assignees_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/assignees{/user}","branches_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/branches{/branch}","tags_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/tags","blobs_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/statuses/{sha}","languages_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/languages","stargazers_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/stargazers","contributors_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/contributors","subscribers_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/subscribers","subscription_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/subscription","commits_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/contents/{+path}","compare_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/merges","archive_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/downloads","issues_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues{/number}","pulls_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls{/number}","milestones_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/milestones{/number}","notifications_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/labels{/name}","releases_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/releases{/id}","deployments_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/deployments","created_at":"2018-07-29T11:02:32Z","updated_at":"2018-08-14T08:27:59Z","pushed_at":"2018-08-17T14:53:56Z","git_url":"git://github.com/VitalikYaroviy/RubyOnRails.git","ssh_url":"git@github.com:VitalikYaroviy/RubyOnRails.git","clone_url":"https://github.com/VitalikYaroviy/RubyOnRails.git","svn_url":"https://github.com/VitalikYaroviy/RubyOnRails","homepage":null,"size":350,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"VitalikYaroviy:master","ref":"master","sha":"09906c8f6fe31ddb87fec758eceb07683d954f84","user":{"login":"VitalikYaroviy","id":35693023,"node_id":"MDQ6VXNlcjM1NjkzMDIz","avatar_url":"https://avatars2.githubusercontent.com/u/35693023?v=4","gravatar_id":"","url":"https://api.github.com/users/VitalikYaroviy","html_url":"https://github.com/VitalikYaroviy","followers_url":"https://api.github.com/users/VitalikYaroviy/followers","following_url":"https://api.github.com/users/VitalikYaroviy/following{/other_user}","gists_url":"https://api.github.com/users/VitalikYaroviy/gists{/gist_id}","starred_url":"https://api.github.com/users/VitalikYaroviy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitalikYaroviy/subscriptions","organizations_url":"https://api.github.com/users/VitalikYaroviy/orgs","repos_url":"https://api.github.com/users/VitalikYaroviy/repos","events_url":"https://api.github.com/users/VitalikYaroviy/events{/privacy}","received_events_url":"https://api.github.com/users/VitalikYaroviy/received_events","type":"User","site_admin":false},"repo":{"id":142753550,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI3NTM1NTA=","name":"RubyOnRails","full_name":"VitalikYaroviy/RubyOnRails","owner":{"login":"VitalikYaroviy","id":35693023,"node_id":"MDQ6VXNlcjM1NjkzMDIz","avatar_url":"https://avatars2.githubusercontent.com/u/35693023?v=4","gravatar_id":"","url":"https://api.github.com/users/VitalikYaroviy","html_url":"https://github.com/VitalikYaroviy","followers_url":"https://api.github.com/users/VitalikYaroviy/followers","following_url":"https://api.github.com/users/VitalikYaroviy/following{/other_user}","gists_url":"https://api.github.com/users/VitalikYaroviy/gists{/gist_id}","starred_url":"https://api.github.com/users/VitalikYaroviy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitalikYaroviy/subscriptions","organizations_url":"https://api.github.com/users/VitalikYaroviy/orgs","repos_url":"https://api.github.com/users/VitalikYaroviy/repos","events_url":"https://api.github.com/users/VitalikYaroviy/events{/privacy}","received_events_url":"https://api.github.com/users/VitalikYaroviy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VitalikYaroviy/RubyOnRails","description":null,"fork":false,"url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails","forks_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/forks","keys_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/teams","hooks_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/hooks","issue_events_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues/events{/number}","events_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/events","assignees_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/assignees{/user}","branches_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/branches{/branch}","tags_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/tags","blobs_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/statuses/{sha}","languages_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/languages","stargazers_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/stargazers","contributors_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/contributors","subscribers_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/subscribers","subscription_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/subscription","commits_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/contents/{+path}","compare_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/merges","archive_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/downloads","issues_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues{/number}","pulls_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls{/number}","milestones_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/milestones{/number}","notifications_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/labels{/name}","releases_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/releases{/id}","deployments_url":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/deployments","created_at":"2018-07-29T11:02:32Z","updated_at":"2018-08-14T08:27:59Z","pushed_at":"2018-08-17T14:53:56Z","git_url":"git://github.com/VitalikYaroviy/RubyOnRails.git","ssh_url":"git@github.com:VitalikYaroviy/RubyOnRails.git","clone_url":"https://github.com/VitalikYaroviy/RubyOnRails.git","svn_url":"https://github.com/VitalikYaroviy/RubyOnRails","homepage":null,"size":350,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/8"},"html":{"href":"https://github.com/VitalikYaroviy/RubyOnRails/pull/8"},"issue":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues/8"},"comments":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/VitalikYaroviy/RubyOnRails/statuses/ab1f5ed3223b7184399ddef9afddc7446368d9ce"}},"author_association":"OWNER"}}
{"actor":{"display_login":"eugenekorpan"}}