{"action":"created","comment":{"url":"https://api.github.com/repos/u2i/confy/pulls/comments/70821727","id":70821727,"diff_hunk":"@@ -0,0 +1,47 @@\n+require 'rails_helper'\n+\n+describe GoogleOauth do\n+\n+  describe '.default_client' do\n+    it \"must return Signet::OAuth2::Client instance\" do\n+      expect(GoogleOauth.default_client).to be_instance_of(Signet::OAuth2::Client)\n+    end\n+  end\n+\n+  describe '.is_authenticated' do\n+    it \"should return false if not Hash is given\" do\n+      param = []\n+      expect(GoogleOauth.is_authenticated?(param)).to eq false\n+    end\n+\n+    it \"should return false if empty Hash is given\" do\n+      param = {}\n+      expect(GoogleOauth.is_authenticated?(param)).to eq false\n+    end\n+\n+    it \"should return false if Hash without client_id and client_secrets keys is given\" do\n+      param = {\"irrelevant\" => 123}\n+      expect(GoogleOauth.is_authenticated?(param)).to eq false\n+    end\n+\n+    it \"should return false if Hash without client_id is given\" do\n+      param = {\"client_secret\" => 123, \"irrelevant\" => \"something\"}\n+      expect(GoogleOauth.is_authenticated?(param)).to eq false\n+    end\n+\n+    it \"should return false if Hash without client_secret is given\" do","path":"spec/services/google_oauth_spec.rb","position":32,"original_position":32,"commit_id":"77fab82b212fd18d375092b0a3232202b1331af4","original_commit_id":"77fab82b212fd18d375092b0a3232202b1331af4","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-07-14T15:02:12Z","updated_at":"2016-07-14T15:02:12Z","html_url":"https://github.com/u2i/confy/pull/25#discussion_r70821727","pull_request_url":"https://api.github.com/repos/u2i/confy/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/u2i/confy/pulls/comments/70821727"},"html":{"href":"https://github.com/u2i/confy/pull/25#discussion_r70821727"},"pull_request":{"href":"https://api.github.com/repos/u2i/confy/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/u2i/confy/pulls/25","id":77471393,"html_url":"https://github.com/u2i/confy/pull/25","diff_url":"https://github.com/u2i/confy/pull/25.diff","patch_url":"https://github.com/u2i/confy/pull/25.patch","issue_url":"https://api.github.com/repos/u2i/confy/issues/25","number":25,"state":"open","locked":false,"title":"Develop","user":{"login":"mhib","id":3617925,"avatar_url":"https://avatars.githubusercontent.com/u/3617925?v=3","gravatar_id":"","url":"https://api.github.com/users/mhib","html_url":"https://github.com/mhib","followers_url":"https://api.github.com/users/mhib/followers","following_url":"https://api.github.com/users/mhib/following{/other_user}","gists_url":"https://api.github.com/users/mhib/gists{/gist_id}","starred_url":"https://api.github.com/users/mhib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhib/subscriptions","organizations_url":"https://api.github.com/users/mhib/orgs","repos_url":"https://api.github.com/users/mhib/repos","events_url":"https://api.github.com/users/mhib/events{/privacy}","received_events_url":"https://api.github.com/users/mhib/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-14T15:01:55Z","updated_at":"2016-07-14T15:02:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e42e0b57eb85edd2c7120d97b2f851c869767c33","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/u2i/confy/pulls/25/commits","review_comments_url":"https://api.github.com/repos/u2i/confy/pulls/25/comments","review_comment_url":"https://api.github.com/repos/u2i/confy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/u2i/confy/issues/25/comments","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/77fab82b212fd18d375092b0a3232202b1331af4","head":{"label":"u2i:develop","ref":"develop","sha":"77fab82b212fd18d375092b0a3232202b1331af4","user":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"repo":{"id":62560182,"name":"confy","full_name":"u2i/confy","owner":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/u2i/confy","description":null,"fork":false,"url":"https://api.github.com/repos/u2i/confy","forks_url":"https://api.github.com/repos/u2i/confy/forks","keys_url":"https://api.github.com/repos/u2i/confy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/u2i/confy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/u2i/confy/teams","hooks_url":"https://api.github.com/repos/u2i/confy/hooks","issue_events_url":"https://api.github.com/repos/u2i/confy/issues/events{/number}","events_url":"https://api.github.com/repos/u2i/confy/events","assignees_url":"https://api.github.com/repos/u2i/confy/assignees{/user}","branches_url":"https://api.github.com/repos/u2i/confy/branches{/branch}","tags_url":"https://api.github.com/repos/u2i/confy/tags","blobs_url":"https://api.github.com/repos/u2i/confy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/u2i/confy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/u2i/confy/git/refs{/sha}","trees_url":"https://api.github.com/repos/u2i/confy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/{sha}","languages_url":"https://api.github.com/repos/u2i/confy/languages","stargazers_url":"https://api.github.com/repos/u2i/confy/stargazers","contributors_url":"https://api.github.com/repos/u2i/confy/contributors","subscribers_url":"https://api.github.com/repos/u2i/confy/subscribers","subscription_url":"https://api.github.com/repos/u2i/confy/subscription","commits_url":"https://api.github.com/repos/u2i/confy/commits{/sha}","git_commits_url":"https://api.github.com/repos/u2i/confy/git/commits{/sha}","comments_url":"https://api.github.com/repos/u2i/confy/comments{/number}","issue_comment_url":"https://api.github.com/repos/u2i/confy/issues/comments{/number}","contents_url":"https://api.github.com/repos/u2i/confy/contents/{+path}","compare_url":"https://api.github.com/repos/u2i/confy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/u2i/confy/merges","archive_url":"https://api.github.com/repos/u2i/confy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/u2i/confy/downloads","issues_url":"https://api.github.com/repos/u2i/confy/issues{/number}","pulls_url":"https://api.github.com/repos/u2i/confy/pulls{/number}","milestones_url":"https://api.github.com/repos/u2i/confy/milestones{/number}","notifications_url":"https://api.github.com/repos/u2i/confy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/u2i/confy/labels{/name}","releases_url":"https://api.github.com/repos/u2i/confy/releases{/id}","deployments_url":"https://api.github.com/repos/u2i/confy/deployments","created_at":"2016-07-04T12:23:19Z","updated_at":"2016-07-04T13:24:19Z","pushed_at":"2016-07-14T15:01:55Z","git_url":"git://github.com/u2i/confy.git","ssh_url":"git@github.com:u2i/confy.git","clone_url":"https://github.com/u2i/confy.git","svn_url":"https://github.com/u2i/confy","homepage":null,"size":165,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"u2i:master","ref":"master","sha":"4e375ccf33f1672df49d0fc1d7652ff3b9cfc1a8","user":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"repo":{"id":62560182,"name":"confy","full_name":"u2i/confy","owner":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/u2i/confy","description":null,"fork":false,"url":"https://api.github.com/repos/u2i/confy","forks_url":"https://api.github.com/repos/u2i/confy/forks","keys_url":"https://api.github.com/repos/u2i/confy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/u2i/confy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/u2i/confy/teams","hooks_url":"https://api.github.com/repos/u2i/confy/hooks","issue_events_url":"https://api.github.com/repos/u2i/confy/issues/events{/number}","events_url":"https://api.github.com/repos/u2i/confy/events","assignees_url":"https://api.github.com/repos/u2i/confy/assignees{/user}","branches_url":"https://api.github.com/repos/u2i/confy/branches{/branch}","tags_url":"https://api.github.com/repos/u2i/confy/tags","blobs_url":"https://api.github.com/repos/u2i/confy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/u2i/confy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/u2i/confy/git/refs{/sha}","trees_url":"https://api.github.com/repos/u2i/confy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/{sha}","languages_url":"https://api.github.com/repos/u2i/confy/languages","stargazers_url":"https://api.github.com/repos/u2i/confy/stargazers","contributors_url":"https://api.github.com/repos/u2i/confy/contributors","subscribers_url":"https://api.github.com/repos/u2i/confy/subscribers","subscription_url":"https://api.github.com/repos/u2i/confy/subscription","commits_url":"https://api.github.com/repos/u2i/confy/commits{/sha}","git_commits_url":"https://api.github.com/repos/u2i/confy/git/commits{/sha}","comments_url":"https://api.github.com/repos/u2i/confy/comments{/number}","issue_comment_url":"https://api.github.com/repos/u2i/confy/issues/comments{/number}","contents_url":"https://api.github.com/repos/u2i/confy/contents/{+path}","compare_url":"https://api.github.com/repos/u2i/confy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/u2i/confy/merges","archive_url":"https://api.github.com/repos/u2i/confy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/u2i/confy/downloads","issues_url":"https://api.github.com/repos/u2i/confy/issues{/number}","pulls_url":"https://api.github.com/repos/u2i/confy/pulls{/number}","milestones_url":"https://api.github.com/repos/u2i/confy/milestones{/number}","notifications_url":"https://api.github.com/repos/u2i/confy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/u2i/confy/labels{/name}","releases_url":"https://api.github.com/repos/u2i/confy/releases{/id}","deployments_url":"https://api.github.com/repos/u2i/confy/deployments","created_at":"2016-07-04T12:23:19Z","updated_at":"2016-07-04T13:24:19Z","pushed_at":"2016-07-14T15:01:55Z","git_url":"git://github.com/u2i/confy.git","ssh_url":"git@github.com:u2i/confy.git","clone_url":"https://github.com/u2i/confy.git","svn_url":"https://github.com/u2i/confy","homepage":null,"size":165,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/u2i/confy/pulls/25"},"html":{"href":"https://github.com/u2i/confy/pull/25"},"issue":{"href":"https://api.github.com/repos/u2i/confy/issues/25"},"comments":{"href":"https://api.github.com/repos/u2i/confy/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/u2i/confy/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/u2i/confy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/u2i/confy/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/u2i/confy/statuses/77fab82b212fd18d375092b0a3232202b1331af4"}}}}
{"actor":{"display_login":"houndci-bot"}}