{"action":"created","comment":{"url":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/comments/42323541","id":42323541,"diff_hunk":"@@ -0,0 +1,62 @@\n+describe TwitterFeedRetriever do\n+\n+  let(:twitter_account) { create(:twitter_account, :test) }\n+  let(:retriever) { TwitterFeedRetriever.new(twitter_account, 10)}\n+\n+  it \"retrieves the user's recent tweets\", :vcr, record: :new_episodes do\n+    response = retriever.get_feed\n+    expect(response.length).to eq(10)\n+    expect(response.first.user.screen_name).to eq(\"corey_test\")\n+    expect(response.last.user.screen_name).to eq(\"corey_test\")\n+  end\n+\n+  it \"retrieves the user's home feed\", :vcr, record: :new_episodes do\n+    response = retriever.get_home_feed\n+    expect(response.length).to eq(10)\n+    expect(response.first.user.screen_name).not_to eq(\"corey_test\")\n+    expect(response.last.user.screen_name).not_to eq(\"corey_test\")\n+  end\n+\n+  it \"follows a user\", :vcr, record: :new_episodes do\n+    response = retriever.follow(\"Apple\")\n+    expect(response.first.id).to eq(380749300)\n+  end\n+\n+  it \"unfollows a user\", :vcr, record: :new_episodes do\n+    response = retriever.unfollow(\"Apple\")\n+    expect(response.first.id).to eq(380749300)\n+  end\n+\n+  it \"fetches a user\", :vcr, record: :new_episodes do\n+    response = retriever.fetch_user(\"Apple\")\n+    expect(response.id).to eq(380749300)\n+  end\n+\n+  it \"retrieves followers\", :vcr, record: :new_episodes do\n+    response = retriever.followers\n+    expect(response).to be_instance_of(Twitter::Cursor)\n+  end\n+\n+  it \"retrieves a user's followers\", :vcr, record: :new_episodes do\n+    response = retriever.find_followers(\"CoreyPsoinos\")\n+    expect(response).to be_instance_of(Twitter::Cursor)\n+  end\n+\n+  it \"retrieves a user's timeline\", :vcr, record: :new_episodes do\n+    response = retriever.find_timeline(\"CoreyPsoinos\")\n+    expect(response.first.user.screen_name).to eq(\"CoreyPsoinos\")\n+    expect(response.last.user.screen_name).to eq(\"CoreyPsoinos\")\n+  end\n+\n+  it \"retrieves mentions\", :vcr, record: :new_episodes do\n+    response = retriever.mentions\n+    expect(response.any? { |r| r.id == 655581651439874048 }).to be(true)\n+    expect(response.first.user_mentions.first.screen_name).to eq(\"corey_test\")\n+  end\n+\n+  it \"retrieves a specific tweet\", :vcr, record: :new_episodes do\n+    response = retriever.fetch_tweet(655059941028438017)","path":"spec/services/twitter_feed_retriever_spec.rb","position":58,"original_position":58,"commit_id":"50e7cf64c18268ffe3b6435a40a1dc853a0aee5e","original_commit_id":"50e7cf64c18268ffe3b6435a40a1dc853a0aee5e","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Separate every 3 digits in the integer portion of a number with underscores(_).","created_at":"2015-10-18T17:44:32Z","updated_at":"2015-10-18T17:44:32Z","html_url":"https://github.com/cpsoinos/ntgrate/pull/64#discussion_r42323541","pull_request_url":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/comments/42323541"},"html":{"href":"https://github.com/cpsoinos/ntgrate/pull/64#discussion_r42323541"},"pull_request":{"href":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/64","id":48013323,"html_url":"https://github.com/cpsoinos/ntgrate/pull/64","diff_url":"https://github.com/cpsoinos/ntgrate/pull/64.diff","patch_url":"https://github.com/cpsoinos/ntgrate/pull/64.patch","issue_url":"https://api.github.com/repos/cpsoinos/ntgrate/issues/64","number":64,"state":"open","locked":false,"title":"Dev","user":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-18T17:44:26Z","updated_at":"2015-10-18T17:44:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef6ab58b4f53df3636d8709dc5ab6ae2e56f769b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/64/commits","review_comments_url":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/64/comments","review_comment_url":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cpsoinos/ntgrate/issues/64/comments","statuses_url":"https://api.github.com/repos/cpsoinos/ntgrate/statuses/50e7cf64c18268ffe3b6435a40a1dc853a0aee5e","head":{"label":"cpsoinos:dev","ref":"dev","sha":"50e7cf64c18268ffe3b6435a40a1dc853a0aee5e","user":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"repo":{"id":40841616,"name":"ntgrate","full_name":"cpsoinos/ntgrate","owner":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cpsoinos/ntgrate","description":"Integrate your social networks","fork":false,"url":"https://api.github.com/repos/cpsoinos/ntgrate","forks_url":"https://api.github.com/repos/cpsoinos/ntgrate/forks","keys_url":"https://api.github.com/repos/cpsoinos/ntgrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cpsoinos/ntgrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cpsoinos/ntgrate/teams","hooks_url":"https://api.github.com/repos/cpsoinos/ntgrate/hooks","issue_events_url":"https://api.github.com/repos/cpsoinos/ntgrate/issues/events{/number}","events_url":"https://api.github.com/repos/cpsoinos/ntgrate/events","assignees_url":"https://api.github.com/repos/cpsoinos/ntgrate/assignees{/user}","branches_url":"https://api.github.com/repos/cpsoinos/ntgrate/branches{/branch}","tags_url":"https://api.github.com/repos/cpsoinos/ntgrate/tags","blobs_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cpsoinos/ntgrate/statuses/{sha}","languages_url":"https://api.github.com/repos/cpsoinos/ntgrate/languages","stargazers_url":"https://api.github.com/repos/cpsoinos/ntgrate/stargazers","contributors_url":"https://api.github.com/repos/cpsoinos/ntgrate/contributors","subscribers_url":"https://api.github.com/repos/cpsoinos/ntgrate/subscribers","subscription_url":"https://api.github.com/repos/cpsoinos/ntgrate/subscription","commits_url":"https://api.github.com/repos/cpsoinos/ntgrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/cpsoinos/ntgrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/cpsoinos/ntgrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/cpsoinos/ntgrate/contents/{+path}","compare_url":"https://api.github.com/repos/cpsoinos/ntgrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cpsoinos/ntgrate/merges","archive_url":"https://api.github.com/repos/cpsoinos/ntgrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cpsoinos/ntgrate/downloads","issues_url":"https://api.github.com/repos/cpsoinos/ntgrate/issues{/number}","pulls_url":"https://api.github.com/repos/cpsoinos/ntgrate/pulls{/number}","milestones_url":"https://api.github.com/repos/cpsoinos/ntgrate/milestones{/number}","notifications_url":"https://api.github.com/repos/cpsoinos/ntgrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cpsoinos/ntgrate/labels{/name}","releases_url":"https://api.github.com/repos/cpsoinos/ntgrate/releases{/id}","created_at":"2015-08-16T21:18:15Z","updated_at":"2015-10-03T21:23:57Z","pushed_at":"2015-10-18T17:44:27Z","git_url":"git://github.com/cpsoinos/ntgrate.git","ssh_url":"git@github.com:cpsoinos/ntgrate.git","clone_url":"https://github.com/cpsoinos/ntgrate.git","svn_url":"https://github.com/cpsoinos/ntgrate","homepage":"","size":8615,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"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":"cpsoinos:staging","ref":"staging","sha":"8e747bf49e4fc1e4c9bd434a98350edfdf606a18","user":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"repo":{"id":40841616,"name":"ntgrate","full_name":"cpsoinos/ntgrate","owner":{"login":"cpsoinos","id":10081464,"avatar_url":"https://avatars.githubusercontent.com/u/10081464?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsoinos","html_url":"https://github.com/cpsoinos","followers_url":"https://api.github.com/users/cpsoinos/followers","following_url":"https://api.github.com/users/cpsoinos/following{/other_user}","gists_url":"https://api.github.com/users/cpsoinos/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsoinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsoinos/subscriptions","organizations_url":"https://api.github.com/users/cpsoinos/orgs","repos_url":"https://api.github.com/users/cpsoinos/repos","events_url":"https://api.github.com/users/cpsoinos/events{/privacy}","received_events_url":"https://api.github.com/users/cpsoinos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cpsoinos/ntgrate","description":"Integrate your social networks","fork":false,"url":"https://api.github.com/repos/cpsoinos/ntgrate","forks_url":"https://api.github.com/repos/cpsoinos/ntgrate/forks","keys_url":"https://api.github.com/repos/cpsoinos/ntgrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cpsoinos/ntgrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cpsoinos/ntgrate/teams","hooks_url":"https://api.github.com/repos/cpsoinos/ntgrate/hooks","issue_events_url":"https://api.github.com/repos/cpsoinos/ntgrate/issues/events{/number}","events_url":"https://api.github.com/repos/cpsoinos/ntgrate/events","assignees_url":"https://api.github.com/repos/cpsoinos/ntgrate/assignees{/user}","branches_url":"https://api.github.com/repos/cpsoinos/ntgrate/branches{/branch}","tags_url":"https://api.github.com/repos/cpsoinos/ntgrate/tags","blobs_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cpsoinos/ntgrate/statuses/{sha}","languages_url":"https://api.github.com/repos/cpsoinos/ntgrate/languages","stargazers_url":"https://api.github.com/repos/cpsoinos/ntgrate/stargazers","contributors_url":"https://api.github.com/repos/cpsoinos/ntgrate/contributors","subscribers_url":"https://api.github.com/repos/cpsoinos/ntgrate/subscribers","subscription_url":"https://api.github.com/repos/cpsoinos/ntgrate/subscription","commits_url":"https://api.github.com/repos/cpsoinos/ntgrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/cpsoinos/ntgrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/cpsoinos/ntgrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/cpsoinos/ntgrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/cpsoinos/ntgrate/contents/{+path}","compare_url":"https://api.github.com/repos/cpsoinos/ntgrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cpsoinos/ntgrate/merges","archive_url":"https://api.github.com/repos/cpsoinos/ntgrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cpsoinos/ntgrate/downloads","issues_url":"https://api.github.com/repos/cpsoinos/ntgrate/issues{/number}","pulls_url":"https://api.github.com/repos/cpsoinos/ntgrate/pulls{/number}","milestones_url":"https://api.github.com/repos/cpsoinos/ntgrate/milestones{/number}","notifications_url":"https://api.github.com/repos/cpsoinos/ntgrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cpsoinos/ntgrate/labels{/name}","releases_url":"https://api.github.com/repos/cpsoinos/ntgrate/releases{/id}","created_at":"2015-08-16T21:18:15Z","updated_at":"2015-10-03T21:23:57Z","pushed_at":"2015-10-18T17:44:27Z","git_url":"git://github.com/cpsoinos/ntgrate.git","ssh_url":"git@github.com:cpsoinos/ntgrate.git","clone_url":"https://github.com/cpsoinos/ntgrate.git","svn_url":"https://github.com/cpsoinos/ntgrate","homepage":"","size":8615,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"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/cpsoinos/ntgrate/pulls/64"},"html":{"href":"https://github.com/cpsoinos/ntgrate/pull/64"},"issue":{"href":"https://api.github.com/repos/cpsoinos/ntgrate/issues/64"},"comments":{"href":"https://api.github.com/repos/cpsoinos/ntgrate/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cpsoinos/ntgrate/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/cpsoinos/ntgrate/statuses/50e7cf64c18268ffe3b6435a40a1dc853a0aee5e"}}}}