{"action":"created","comment":{"url":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/comments/73068065","id":73068065,"diff_hunk":"@@ -1,10 +1,62 @@\n require 'rails_helper'\n \n-RSpec.describe Admin::IssuesController, type: :controller do\n+RSpec.describe Admin::IssuesController, type: :controller, vcr: true do\n+  before(:each) do\n+    @organization = FactoryGirl.create :icalialabs\n+    @repository =  FactoryGirl.create :watcher, organization: @organization\n+    @user = FactoryGirl.create :user\n+    sign_in @user\n+  end\n+\n   describe \"GET #index\" do\n+    before :each do\n+      get :index, :repository_id => @repository.name\n+      service = IssueService.new(@repository.name)\n+      service.creates_or_updates_issue","path":"spec/controllers/admin/issues_controller_spec.rb","position":16,"original_position":16,"commit_id":"2f629f59110e0d02c4945edcf01e9c82e227ad4d","original_commit_id":"1ee4bae06866093b89c83a52206d01fd62fcb309","user":{"login":"mayra-cabrera","id":4439027,"avatar_url":"https://avatars.githubusercontent.com/u/4439027?v=3","gravatar_id":"","url":"https://api.github.com/users/mayra-cabrera","html_url":"https://github.com/mayra-cabrera","followers_url":"https://api.github.com/users/mayra-cabrera/followers","following_url":"https://api.github.com/users/mayra-cabrera/following{/other_user}","gists_url":"https://api.github.com/users/mayra-cabrera/gists{/gist_id}","starred_url":"https://api.github.com/users/mayra-cabrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayra-cabrera/subscriptions","organizations_url":"https://api.github.com/users/mayra-cabrera/orgs","repos_url":"https://api.github.com/users/mayra-cabrera/repos","events_url":"https://api.github.com/users/mayra-cabrera/events{/privacy}","received_events_url":"https://api.github.com/users/mayra-cabrera/received_events","type":"User","site_admin":false},"body":"It will be better if we use factories instead of making an http request to github \r\n\r\n```ruby\r\nbefore(:each) do\r\n  @issues = create_list(:issues, rand(1..10), repository: @repository)\r\n  ...\r\nend\r\n```\r\n\r\nAnd then in the spec\r\n```ruby\r\nit \"should render all repository index\" do\r\n  expect(assigns(:issues)).to eq(@issues)\r\nend\r\n```","created_at":"2016-08-01T22:57:04Z","updated_at":"2016-08-01T22:57:04Z","html_url":"https://github.com/IcaliaLabs/watcher/pull/71#discussion_r73068065","pull_request_url":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/comments/73068065"},"html":{"href":"https://github.com/IcaliaLabs/watcher/pull/71#discussion_r73068065"},"pull_request":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/71","id":78756813,"html_url":"https://github.com/IcaliaLabs/watcher/pull/71","diff_url":"https://github.com/IcaliaLabs/watcher/pull/71.diff","patch_url":"https://github.com/IcaliaLabs/watcher/pull/71.patch","issue_url":"https://api.github.com/repos/IcaliaLabs/watcher/issues/71","number":71,"state":"open","locked":false,"title":"Issues/PullRequest Dashboard","user":{"login":"JoaoGabrielMoura","id":7563339,"avatar_url":"https://avatars.githubusercontent.com/u/7563339?v=3","gravatar_id":"","url":"https://api.github.com/users/JoaoGabrielMoura","html_url":"https://github.com/JoaoGabrielMoura","followers_url":"https://api.github.com/users/JoaoGabrielMoura/followers","following_url":"https://api.github.com/users/JoaoGabrielMoura/following{/other_user}","gists_url":"https://api.github.com/users/JoaoGabrielMoura/gists{/gist_id}","starred_url":"https://api.github.com/users/JoaoGabrielMoura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoaoGabrielMoura/subscriptions","organizations_url":"https://api.github.com/users/JoaoGabrielMoura/orgs","repos_url":"https://api.github.com/users/JoaoGabrielMoura/repos","events_url":"https://api.github.com/users/JoaoGabrielMoura/events{/privacy}","received_events_url":"https://api.github.com/users/JoaoGabrielMoura/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-25T21:37:35Z","updated_at":"2016-08-01T22:57:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"917fbc7f7d830a7638e1bf2416e0dc1b0d2c9f0c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/71/commits","review_comments_url":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/71/comments","review_comment_url":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IcaliaLabs/watcher/issues/71/comments","statuses_url":"https://api.github.com/repos/IcaliaLabs/watcher/statuses/2f629f59110e0d02c4945edcf01e9c82e227ad4d","head":{"label":"IcaliaLabs:issues_and_pr_services","ref":"issues_and_pr_services","sha":"2f629f59110e0d02c4945edcf01e9c82e227ad4d","user":{"login":"IcaliaLabs","id":2523244,"avatar_url":"https://avatars.githubusercontent.com/u/2523244?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaliaLabs","html_url":"https://github.com/IcaliaLabs","followers_url":"https://api.github.com/users/IcaliaLabs/followers","following_url":"https://api.github.com/users/IcaliaLabs/following{/other_user}","gists_url":"https://api.github.com/users/IcaliaLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaliaLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaliaLabs/subscriptions","organizations_url":"https://api.github.com/users/IcaliaLabs/orgs","repos_url":"https://api.github.com/users/IcaliaLabs/repos","events_url":"https://api.github.com/users/IcaliaLabs/events{/privacy}","received_events_url":"https://api.github.com/users/IcaliaLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":52910818,"name":"watcher","full_name":"IcaliaLabs/watcher","owner":{"login":"IcaliaLabs","id":2523244,"avatar_url":"https://avatars.githubusercontent.com/u/2523244?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaliaLabs","html_url":"https://github.com/IcaliaLabs","followers_url":"https://api.github.com/users/IcaliaLabs/followers","following_url":"https://api.github.com/users/IcaliaLabs/following{/other_user}","gists_url":"https://api.github.com/users/IcaliaLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaliaLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaliaLabs/subscriptions","organizations_url":"https://api.github.com/users/IcaliaLabs/orgs","repos_url":"https://api.github.com/users/IcaliaLabs/repos","events_url":"https://api.github.com/users/IcaliaLabs/events{/privacy}","received_events_url":"https://api.github.com/users/IcaliaLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IcaliaLabs/watcher","description":"A real-time dashboard builder for open source projects","fork":false,"url":"https://api.github.com/repos/IcaliaLabs/watcher","forks_url":"https://api.github.com/repos/IcaliaLabs/watcher/forks","keys_url":"https://api.github.com/repos/IcaliaLabs/watcher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IcaliaLabs/watcher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IcaliaLabs/watcher/teams","hooks_url":"https://api.github.com/repos/IcaliaLabs/watcher/hooks","issue_events_url":"https://api.github.com/repos/IcaliaLabs/watcher/issues/events{/number}","events_url":"https://api.github.com/repos/IcaliaLabs/watcher/events","assignees_url":"https://api.github.com/repos/IcaliaLabs/watcher/assignees{/user}","branches_url":"https://api.github.com/repos/IcaliaLabs/watcher/branches{/branch}","tags_url":"https://api.github.com/repos/IcaliaLabs/watcher/tags","blobs_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/refs{/sha}","trees_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IcaliaLabs/watcher/statuses/{sha}","languages_url":"https://api.github.com/repos/IcaliaLabs/watcher/languages","stargazers_url":"https://api.github.com/repos/IcaliaLabs/watcher/stargazers","contributors_url":"https://api.github.com/repos/IcaliaLabs/watcher/contributors","subscribers_url":"https://api.github.com/repos/IcaliaLabs/watcher/subscribers","subscription_url":"https://api.github.com/repos/IcaliaLabs/watcher/subscription","commits_url":"https://api.github.com/repos/IcaliaLabs/watcher/commits{/sha}","git_commits_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/commits{/sha}","comments_url":"https://api.github.com/repos/IcaliaLabs/watcher/comments{/number}","issue_comment_url":"https://api.github.com/repos/IcaliaLabs/watcher/issues/comments{/number}","contents_url":"https://api.github.com/repos/IcaliaLabs/watcher/contents/{+path}","compare_url":"https://api.github.com/repos/IcaliaLabs/watcher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IcaliaLabs/watcher/merges","archive_url":"https://api.github.com/repos/IcaliaLabs/watcher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IcaliaLabs/watcher/downloads","issues_url":"https://api.github.com/repos/IcaliaLabs/watcher/issues{/number}","pulls_url":"https://api.github.com/repos/IcaliaLabs/watcher/pulls{/number}","milestones_url":"https://api.github.com/repos/IcaliaLabs/watcher/milestones{/number}","notifications_url":"https://api.github.com/repos/IcaliaLabs/watcher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IcaliaLabs/watcher/labels{/name}","releases_url":"https://api.github.com/repos/IcaliaLabs/watcher/releases{/id}","deployments_url":"https://api.github.com/repos/IcaliaLabs/watcher/deployments","created_at":"2016-03-01T21:20:00Z","updated_at":"2016-07-19T16:33:27Z","pushed_at":"2016-08-01T22:49:04Z","git_url":"git://github.com/IcaliaLabs/watcher.git","ssh_url":"git@github.com:IcaliaLabs/watcher.git","clone_url":"https://github.com/IcaliaLabs/watcher.git","svn_url":"https://github.com/IcaliaLabs/watcher","homepage":null,"size":356,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":7,"default_branch":"master"}},"base":{"label":"IcaliaLabs:dev","ref":"dev","sha":"1260e59c4f13ef6d1f7c586f6b0d3a00479e61a5","user":{"login":"IcaliaLabs","id":2523244,"avatar_url":"https://avatars.githubusercontent.com/u/2523244?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaliaLabs","html_url":"https://github.com/IcaliaLabs","followers_url":"https://api.github.com/users/IcaliaLabs/followers","following_url":"https://api.github.com/users/IcaliaLabs/following{/other_user}","gists_url":"https://api.github.com/users/IcaliaLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaliaLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaliaLabs/subscriptions","organizations_url":"https://api.github.com/users/IcaliaLabs/orgs","repos_url":"https://api.github.com/users/IcaliaLabs/repos","events_url":"https://api.github.com/users/IcaliaLabs/events{/privacy}","received_events_url":"https://api.github.com/users/IcaliaLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":52910818,"name":"watcher","full_name":"IcaliaLabs/watcher","owner":{"login":"IcaliaLabs","id":2523244,"avatar_url":"https://avatars.githubusercontent.com/u/2523244?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaliaLabs","html_url":"https://github.com/IcaliaLabs","followers_url":"https://api.github.com/users/IcaliaLabs/followers","following_url":"https://api.github.com/users/IcaliaLabs/following{/other_user}","gists_url":"https://api.github.com/users/IcaliaLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaliaLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaliaLabs/subscriptions","organizations_url":"https://api.github.com/users/IcaliaLabs/orgs","repos_url":"https://api.github.com/users/IcaliaLabs/repos","events_url":"https://api.github.com/users/IcaliaLabs/events{/privacy}","received_events_url":"https://api.github.com/users/IcaliaLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IcaliaLabs/watcher","description":"A real-time dashboard builder for open source projects","fork":false,"url":"https://api.github.com/repos/IcaliaLabs/watcher","forks_url":"https://api.github.com/repos/IcaliaLabs/watcher/forks","keys_url":"https://api.github.com/repos/IcaliaLabs/watcher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IcaliaLabs/watcher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IcaliaLabs/watcher/teams","hooks_url":"https://api.github.com/repos/IcaliaLabs/watcher/hooks","issue_events_url":"https://api.github.com/repos/IcaliaLabs/watcher/issues/events{/number}","events_url":"https://api.github.com/repos/IcaliaLabs/watcher/events","assignees_url":"https://api.github.com/repos/IcaliaLabs/watcher/assignees{/user}","branches_url":"https://api.github.com/repos/IcaliaLabs/watcher/branches{/branch}","tags_url":"https://api.github.com/repos/IcaliaLabs/watcher/tags","blobs_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/refs{/sha}","trees_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IcaliaLabs/watcher/statuses/{sha}","languages_url":"https://api.github.com/repos/IcaliaLabs/watcher/languages","stargazers_url":"https://api.github.com/repos/IcaliaLabs/watcher/stargazers","contributors_url":"https://api.github.com/repos/IcaliaLabs/watcher/contributors","subscribers_url":"https://api.github.com/repos/IcaliaLabs/watcher/subscribers","subscription_url":"https://api.github.com/repos/IcaliaLabs/watcher/subscription","commits_url":"https://api.github.com/repos/IcaliaLabs/watcher/commits{/sha}","git_commits_url":"https://api.github.com/repos/IcaliaLabs/watcher/git/commits{/sha}","comments_url":"https://api.github.com/repos/IcaliaLabs/watcher/comments{/number}","issue_comment_url":"https://api.github.com/repos/IcaliaLabs/watcher/issues/comments{/number}","contents_url":"https://api.github.com/repos/IcaliaLabs/watcher/contents/{+path}","compare_url":"https://api.github.com/repos/IcaliaLabs/watcher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IcaliaLabs/watcher/merges","archive_url":"https://api.github.com/repos/IcaliaLabs/watcher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IcaliaLabs/watcher/downloads","issues_url":"https://api.github.com/repos/IcaliaLabs/watcher/issues{/number}","pulls_url":"https://api.github.com/repos/IcaliaLabs/watcher/pulls{/number}","milestones_url":"https://api.github.com/repos/IcaliaLabs/watcher/milestones{/number}","notifications_url":"https://api.github.com/repos/IcaliaLabs/watcher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IcaliaLabs/watcher/labels{/name}","releases_url":"https://api.github.com/repos/IcaliaLabs/watcher/releases{/id}","deployments_url":"https://api.github.com/repos/IcaliaLabs/watcher/deployments","created_at":"2016-03-01T21:20:00Z","updated_at":"2016-07-19T16:33:27Z","pushed_at":"2016-08-01T22:49:04Z","git_url":"git://github.com/IcaliaLabs/watcher.git","ssh_url":"git@github.com:IcaliaLabs/watcher.git","clone_url":"https://github.com/IcaliaLabs/watcher.git","svn_url":"https://github.com/IcaliaLabs/watcher","homepage":null,"size":356,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/71"},"html":{"href":"https://github.com/IcaliaLabs/watcher/pull/71"},"issue":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/issues/71"},"comments":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/IcaliaLabs/watcher/statuses/2f629f59110e0d02c4945edcf01e9c82e227ad4d"}}}}
{"actor":{"display_login":"mayra-cabrera"}}