{"action":"created","comment":{"url":"https://api.github.com/repos/palkan/influxer/pulls/comments/38214295","id":38214295,"diff_hunk":"@@ -240,30 +234,25 @@\n \n   describe \"#delete_all\" do\n     it do\n-      Timecop.freeze(Time.now) do\n-        expect(rel.where(user_id: 1, dummy: 'q', timer: Time.now).delete_all)\n-          .to eq \"delete from \\\"dummy\\\" where (user_id=1) and (dummy='q') and (timer=#{Time.now.to_i}s)\"\n-      end\n+      Timecop.freeze(Time.now)\n+      expect(rel.where(user_id: 1, dummy: 'q', timer: Time.now).delete_all)\n+        .to eq \"delete from \\\"dummy\\\" where (user_id=1) and (dummy='q') and (timer=#{Time.now.to_i}s)\"\n     end\n   end\n \n   describe \"#inspect\" do\n-    after(:each) do\n-      Influxer.reset\n-    end\n-\n-    it \"should return correct String represantation of empty relation\" do\n-      Influxer.client.stub(:query) { {} }\n+    it \"return correct String represantation of empty relation\" do\n+      allow(rel).to receive(:to_a) {  [] }","path":"spec/metrics/relation_spec.rb","position":305,"original_position":305,"commit_id":"a8a295c67d0ba09a91dbf363e28b2f0c9f5b543a","original_commit_id":"a8a295c67d0ba09a91dbf363e28b2f0c9f5b543a","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":"Style/ExtraSpacing: Unnecessary spacing detected.","created_at":"2015-08-28T15:53:01Z","updated_at":"2015-08-28T15:53:01Z","html_url":"https://github.com/palkan/influxer/pull/10#discussion_r38214295","pull_request_url":"https://api.github.com/repos/palkan/influxer/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/palkan/influxer/pulls/comments/38214295"},"html":{"href":"https://github.com/palkan/influxer/pull/10#discussion_r38214295"},"pull_request":{"href":"https://api.github.com/repos/palkan/influxer/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/palkan/influxer/pulls/10","id":43641360,"html_url":"https://github.com/palkan/influxer/pull/10","diff_url":"https://github.com/palkan/influxer/pull/10.diff","patch_url":"https://github.com/palkan/influxer/pull/10.patch","issue_url":"https://api.github.com/repos/palkan/influxer/issues/10","number":10,"state":"open","locked":false,"title":"V09 Support","user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-28T15:39:57Z","updated_at":"2015-08-28T15:53:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fa6dd3fc24322b2cd2b39174d1fedbc54c1c422","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/palkan/influxer/pulls/10/commits","review_comments_url":"https://api.github.com/repos/palkan/influxer/pulls/10/comments","review_comment_url":"https://api.github.com/repos/palkan/influxer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/palkan/influxer/issues/10/comments","statuses_url":"https://api.github.com/repos/palkan/influxer/statuses/a8a295c67d0ba09a91dbf363e28b2f0c9f5b543a","head":{"label":"palkan:v09","ref":"v09","sha":"a8a295c67d0ba09a91dbf363e28b2f0c9f5b543a","user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"repo":{"id":22431046,"name":"influxer","full_name":"palkan/influxer","owner":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/palkan/influxer","description":"InfluxDB for Rails","fork":false,"url":"https://api.github.com/repos/palkan/influxer","forks_url":"https://api.github.com/repos/palkan/influxer/forks","keys_url":"https://api.github.com/repos/palkan/influxer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/palkan/influxer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/palkan/influxer/teams","hooks_url":"https://api.github.com/repos/palkan/influxer/hooks","issue_events_url":"https://api.github.com/repos/palkan/influxer/issues/events{/number}","events_url":"https://api.github.com/repos/palkan/influxer/events","assignees_url":"https://api.github.com/repos/palkan/influxer/assignees{/user}","branches_url":"https://api.github.com/repos/palkan/influxer/branches{/branch}","tags_url":"https://api.github.com/repos/palkan/influxer/tags","blobs_url":"https://api.github.com/repos/palkan/influxer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/palkan/influxer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/palkan/influxer/git/refs{/sha}","trees_url":"https://api.github.com/repos/palkan/influxer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/palkan/influxer/statuses/{sha}","languages_url":"https://api.github.com/repos/palkan/influxer/languages","stargazers_url":"https://api.github.com/repos/palkan/influxer/stargazers","contributors_url":"https://api.github.com/repos/palkan/influxer/contributors","subscribers_url":"https://api.github.com/repos/palkan/influxer/subscribers","subscription_url":"https://api.github.com/repos/palkan/influxer/subscription","commits_url":"https://api.github.com/repos/palkan/influxer/commits{/sha}","git_commits_url":"https://api.github.com/repos/palkan/influxer/git/commits{/sha}","comments_url":"https://api.github.com/repos/palkan/influxer/comments{/number}","issue_comment_url":"https://api.github.com/repos/palkan/influxer/issues/comments{/number}","contents_url":"https://api.github.com/repos/palkan/influxer/contents/{+path}","compare_url":"https://api.github.com/repos/palkan/influxer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/palkan/influxer/merges","archive_url":"https://api.github.com/repos/palkan/influxer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/palkan/influxer/downloads","issues_url":"https://api.github.com/repos/palkan/influxer/issues{/number}","pulls_url":"https://api.github.com/repos/palkan/influxer/pulls{/number}","milestones_url":"https://api.github.com/repos/palkan/influxer/milestones{/number}","notifications_url":"https://api.github.com/repos/palkan/influxer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/palkan/influxer/labels{/name}","releases_url":"https://api.github.com/repos/palkan/influxer/releases{/id}","created_at":"2014-07-30T14:25:39Z","updated_at":"2015-08-04T17:58:24Z","pushed_at":"2015-08-28T15:52:52Z","git_url":"git://github.com/palkan/influxer.git","ssh_url":"git@github.com:palkan/influxer.git","clone_url":"https://github.com/palkan/influxer.git","svn_url":"https://github.com/palkan/influxer","homepage":"","size":578,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":17,"default_branch":"master"}},"base":{"label":"palkan:master","ref":"master","sha":"8b15d00cfd278df0604c5f5936f428b012c56b78","user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"repo":{"id":22431046,"name":"influxer","full_name":"palkan/influxer","owner":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/palkan/influxer","description":"InfluxDB for Rails","fork":false,"url":"https://api.github.com/repos/palkan/influxer","forks_url":"https://api.github.com/repos/palkan/influxer/forks","keys_url":"https://api.github.com/repos/palkan/influxer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/palkan/influxer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/palkan/influxer/teams","hooks_url":"https://api.github.com/repos/palkan/influxer/hooks","issue_events_url":"https://api.github.com/repos/palkan/influxer/issues/events{/number}","events_url":"https://api.github.com/repos/palkan/influxer/events","assignees_url":"https://api.github.com/repos/palkan/influxer/assignees{/user}","branches_url":"https://api.github.com/repos/palkan/influxer/branches{/branch}","tags_url":"https://api.github.com/repos/palkan/influxer/tags","blobs_url":"https://api.github.com/repos/palkan/influxer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/palkan/influxer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/palkan/influxer/git/refs{/sha}","trees_url":"https://api.github.com/repos/palkan/influxer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/palkan/influxer/statuses/{sha}","languages_url":"https://api.github.com/repos/palkan/influxer/languages","stargazers_url":"https://api.github.com/repos/palkan/influxer/stargazers","contributors_url":"https://api.github.com/repos/palkan/influxer/contributors","subscribers_url":"https://api.github.com/repos/palkan/influxer/subscribers","subscription_url":"https://api.github.com/repos/palkan/influxer/subscription","commits_url":"https://api.github.com/repos/palkan/influxer/commits{/sha}","git_commits_url":"https://api.github.com/repos/palkan/influxer/git/commits{/sha}","comments_url":"https://api.github.com/repos/palkan/influxer/comments{/number}","issue_comment_url":"https://api.github.com/repos/palkan/influxer/issues/comments{/number}","contents_url":"https://api.github.com/repos/palkan/influxer/contents/{+path}","compare_url":"https://api.github.com/repos/palkan/influxer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/palkan/influxer/merges","archive_url":"https://api.github.com/repos/palkan/influxer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/palkan/influxer/downloads","issues_url":"https://api.github.com/repos/palkan/influxer/issues{/number}","pulls_url":"https://api.github.com/repos/palkan/influxer/pulls{/number}","milestones_url":"https://api.github.com/repos/palkan/influxer/milestones{/number}","notifications_url":"https://api.github.com/repos/palkan/influxer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/palkan/influxer/labels{/name}","releases_url":"https://api.github.com/repos/palkan/influxer/releases{/id}","created_at":"2014-07-30T14:25:39Z","updated_at":"2015-08-04T17:58:24Z","pushed_at":"2015-08-28T15:52:52Z","git_url":"git://github.com/palkan/influxer.git","ssh_url":"git@github.com:palkan/influxer.git","clone_url":"https://github.com/palkan/influxer.git","svn_url":"https://github.com/palkan/influxer","homepage":"","size":578,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/palkan/influxer/pulls/10"},"html":{"href":"https://github.com/palkan/influxer/pull/10"},"issue":{"href":"https://api.github.com/repos/palkan/influxer/issues/10"},"comments":{"href":"https://api.github.com/repos/palkan/influxer/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/palkan/influxer/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/palkan/influxer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/palkan/influxer/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/palkan/influxer/statuses/a8a295c67d0ba09a91dbf363e28b2f0c9f5b543a"}}}}