{"action":"created","comment":{"url":"https://api.github.com/repos/appium/appium/pulls/comments/53230156","id":53230156,"diff_hunk":"@@ -3,11 +3,16 @@\n var chai = require('chai')\n   , controller_path = '../../lib/devices/android/android-controller.js'\n   , controller = require(controller_path)\n-  , _ = require('underscore');\n+  , _ = require('underscore')\n+  , sinon = require('sinon');\n \n chai.should();\n \n describe('android-controller', function () {\n+  beforeEach(function() {\n+    controller.adb = { getApiLevel: function() {} };","path":"test/unit/android-controller-specs.js","position":12,"original_position":12,"commit_id":"2d7e1b1340eb935cb67724de4d07fab96e70a79e","original_commit_id":"2d7e1b1340eb935cb67724de4d07fab96e70a79e","user":{"login":"imurchie","id":2614354,"avatar_url":"https://avatars.githubusercontent.com/u/2614354?v=3","gravatar_id":"","url":"https://api.github.com/users/imurchie","html_url":"https://github.com/imurchie","followers_url":"https://api.github.com/users/imurchie/followers","following_url":"https://api.github.com/users/imurchie/following{/other_user}","gists_url":"https://api.github.com/users/imurchie/gists{/gist_id}","starred_url":"https://api.github.com/users/imurchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imurchie/subscriptions","organizations_url":"https://api.github.com/users/imurchie/orgs","repos_url":"https://api.github.com/users/imurchie/repos","events_url":"https://api.github.com/users/imurchie/events{/privacy}","received_events_url":"https://api.github.com/users/imurchie/received_events","type":"User","site_admin":false},"body":"IS this needed if you are stubbing it below?","created_at":"2016-02-17T20:57:51Z","updated_at":"2016-02-17T20:57:51Z","html_url":"https://github.com/appium/appium/pull/6153#discussion_r53230156","pull_request_url":"https://api.github.com/repos/appium/appium/pulls/6153","_links":{"self":{"href":"https://api.github.com/repos/appium/appium/pulls/comments/53230156"},"html":{"href":"https://github.com/appium/appium/pull/6153#discussion_r53230156"},"pull_request":{"href":"https://api.github.com/repos/appium/appium/pulls/6153"}}},"pull_request":{"url":"https://api.github.com/repos/appium/appium/pulls/6153","id":59697750,"html_url":"https://github.com/appium/appium/pull/6153","diff_url":"https://github.com/appium/appium/pull/6153.diff","patch_url":"https://github.com/appium/appium/pull/6153.patch","issue_url":"https://api.github.com/repos/appium/appium/issues/6153","number":6153,"state":"open","locked":false,"title":"Updated so that the longPress, moveTo, release to drag conversion res…","user":{"login":"ahansen1","id":1158638,"avatar_url":"https://avatars.githubusercontent.com/u/1158638?v=3","gravatar_id":"","url":"https://api.github.com/users/ahansen1","html_url":"https://github.com/ahansen1","followers_url":"https://api.github.com/users/ahansen1/followers","following_url":"https://api.github.com/users/ahansen1/following{/other_user}","gists_url":"https://api.github.com/users/ahansen1/gists{/gist_id}","starred_url":"https://api.github.com/users/ahansen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahansen1/subscriptions","organizations_url":"https://api.github.com/users/ahansen1/orgs","repos_url":"https://api.github.com/users/ahansen1/repos","events_url":"https://api.github.com/users/ahansen1/events{/privacy}","received_events_url":"https://api.github.com/users/ahansen1/received_events","type":"User","site_admin":false},"body":"…pects the duration on the longPress if it exists.","created_at":"2016-02-17T19:45:03Z","updated_at":"2016-02-17T20:57:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff610a1d772e22c1f00d35014aad77164eb36c55","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/appium/appium/pulls/6153/commits","review_comments_url":"https://api.github.com/repos/appium/appium/pulls/6153/comments","review_comment_url":"https://api.github.com/repos/appium/appium/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appium/appium/issues/6153/comments","statuses_url":"https://api.github.com/repos/appium/appium/statuses/2d7e1b1340eb935cb67724de4d07fab96e70a79e","head":{"label":"ahansen1:master","ref":"master","sha":"2d7e1b1340eb935cb67724de4d07fab96e70a79e","user":{"login":"ahansen1","id":1158638,"avatar_url":"https://avatars.githubusercontent.com/u/1158638?v=3","gravatar_id":"","url":"https://api.github.com/users/ahansen1","html_url":"https://github.com/ahansen1","followers_url":"https://api.github.com/users/ahansen1/followers","following_url":"https://api.github.com/users/ahansen1/following{/other_user}","gists_url":"https://api.github.com/users/ahansen1/gists{/gist_id}","starred_url":"https://api.github.com/users/ahansen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahansen1/subscriptions","organizations_url":"https://api.github.com/users/ahansen1/orgs","repos_url":"https://api.github.com/users/ahansen1/repos","events_url":"https://api.github.com/users/ahansen1/events{/privacy}","received_events_url":"https://api.github.com/users/ahansen1/received_events","type":"User","site_admin":false},"repo":{"id":44196044,"name":"appium","full_name":"ahansen1/appium","owner":{"login":"ahansen1","id":1158638,"avatar_url":"https://avatars.githubusercontent.com/u/1158638?v=3","gravatar_id":"","url":"https://api.github.com/users/ahansen1","html_url":"https://github.com/ahansen1","followers_url":"https://api.github.com/users/ahansen1/followers","following_url":"https://api.github.com/users/ahansen1/following{/other_user}","gists_url":"https://api.github.com/users/ahansen1/gists{/gist_id}","starred_url":"https://api.github.com/users/ahansen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahansen1/subscriptions","organizations_url":"https://api.github.com/users/ahansen1/orgs","repos_url":"https://api.github.com/users/ahansen1/repos","events_url":"https://api.github.com/users/ahansen1/events{/privacy}","received_events_url":"https://api.github.com/users/ahansen1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahansen1/appium","description":"Automation for iOS and Android Apps.","fork":true,"url":"https://api.github.com/repos/ahansen1/appium","forks_url":"https://api.github.com/repos/ahansen1/appium/forks","keys_url":"https://api.github.com/repos/ahansen1/appium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahansen1/appium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahansen1/appium/teams","hooks_url":"https://api.github.com/repos/ahansen1/appium/hooks","issue_events_url":"https://api.github.com/repos/ahansen1/appium/issues/events{/number}","events_url":"https://api.github.com/repos/ahansen1/appium/events","assignees_url":"https://api.github.com/repos/ahansen1/appium/assignees{/user}","branches_url":"https://api.github.com/repos/ahansen1/appium/branches{/branch}","tags_url":"https://api.github.com/repos/ahansen1/appium/tags","blobs_url":"https://api.github.com/repos/ahansen1/appium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahansen1/appium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahansen1/appium/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahansen1/appium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahansen1/appium/statuses/{sha}","languages_url":"https://api.github.com/repos/ahansen1/appium/languages","stargazers_url":"https://api.github.com/repos/ahansen1/appium/stargazers","contributors_url":"https://api.github.com/repos/ahansen1/appium/contributors","subscribers_url":"https://api.github.com/repos/ahansen1/appium/subscribers","subscription_url":"https://api.github.com/repos/ahansen1/appium/subscription","commits_url":"https://api.github.com/repos/ahansen1/appium/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahansen1/appium/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahansen1/appium/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahansen1/appium/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahansen1/appium/contents/{+path}","compare_url":"https://api.github.com/repos/ahansen1/appium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahansen1/appium/merges","archive_url":"https://api.github.com/repos/ahansen1/appium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahansen1/appium/downloads","issues_url":"https://api.github.com/repos/ahansen1/appium/issues{/number}","pulls_url":"https://api.github.com/repos/ahansen1/appium/pulls{/number}","milestones_url":"https://api.github.com/repos/ahansen1/appium/milestones{/number}","notifications_url":"https://api.github.com/repos/ahansen1/appium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahansen1/appium/labels{/name}","releases_url":"https://api.github.com/repos/ahansen1/appium/releases{/id}","deployments_url":"https://api.github.com/repos/ahansen1/appium/deployments","created_at":"2015-10-13T18:22:25Z","updated_at":"2016-02-17T19:43:20Z","pushed_at":"2016-02-17T19:51:31Z","git_url":"git://github.com/ahansen1/appium.git","ssh_url":"git@github.com:ahansen1/appium.git","clone_url":"https://github.com/ahansen1/appium.git","svn_url":"https://github.com/ahansen1/appium","homepage":"appium.io","size":36402,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"appium:master","ref":"master","sha":"54c2b4e6500eddbca4bb3047116ceb8d177f7294","user":{"login":"appium","id":3221291,"avatar_url":"https://avatars.githubusercontent.com/u/3221291?v=3","gravatar_id":"","url":"https://api.github.com/users/appium","html_url":"https://github.com/appium","followers_url":"https://api.github.com/users/appium/followers","following_url":"https://api.github.com/users/appium/following{/other_user}","gists_url":"https://api.github.com/users/appium/gists{/gist_id}","starred_url":"https://api.github.com/users/appium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appium/subscriptions","organizations_url":"https://api.github.com/users/appium/orgs","repos_url":"https://api.github.com/users/appium/repos","events_url":"https://api.github.com/users/appium/events{/privacy}","received_events_url":"https://api.github.com/users/appium/received_events","type":"Organization","site_admin":false},"repo":{"id":7530570,"name":"appium","full_name":"appium/appium","owner":{"login":"appium","id":3221291,"avatar_url":"https://avatars.githubusercontent.com/u/3221291?v=3","gravatar_id":"","url":"https://api.github.com/users/appium","html_url":"https://github.com/appium","followers_url":"https://api.github.com/users/appium/followers","following_url":"https://api.github.com/users/appium/following{/other_user}","gists_url":"https://api.github.com/users/appium/gists{/gist_id}","starred_url":"https://api.github.com/users/appium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appium/subscriptions","organizations_url":"https://api.github.com/users/appium/orgs","repos_url":"https://api.github.com/users/appium/repos","events_url":"https://api.github.com/users/appium/events{/privacy}","received_events_url":"https://api.github.com/users/appium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appium/appium","description":":iphone: Automation for iOS and Android Apps.","fork":false,"url":"https://api.github.com/repos/appium/appium","forks_url":"https://api.github.com/repos/appium/appium/forks","keys_url":"https://api.github.com/repos/appium/appium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appium/appium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appium/appium/teams","hooks_url":"https://api.github.com/repos/appium/appium/hooks","issue_events_url":"https://api.github.com/repos/appium/appium/issues/events{/number}","events_url":"https://api.github.com/repos/appium/appium/events","assignees_url":"https://api.github.com/repos/appium/appium/assignees{/user}","branches_url":"https://api.github.com/repos/appium/appium/branches{/branch}","tags_url":"https://api.github.com/repos/appium/appium/tags","blobs_url":"https://api.github.com/repos/appium/appium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appium/appium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appium/appium/git/refs{/sha}","trees_url":"https://api.github.com/repos/appium/appium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appium/appium/statuses/{sha}","languages_url":"https://api.github.com/repos/appium/appium/languages","stargazers_url":"https://api.github.com/repos/appium/appium/stargazers","contributors_url":"https://api.github.com/repos/appium/appium/contributors","subscribers_url":"https://api.github.com/repos/appium/appium/subscribers","subscription_url":"https://api.github.com/repos/appium/appium/subscription","commits_url":"https://api.github.com/repos/appium/appium/commits{/sha}","git_commits_url":"https://api.github.com/repos/appium/appium/git/commits{/sha}","comments_url":"https://api.github.com/repos/appium/appium/comments{/number}","issue_comment_url":"https://api.github.com/repos/appium/appium/issues/comments{/number}","contents_url":"https://api.github.com/repos/appium/appium/contents/{+path}","compare_url":"https://api.github.com/repos/appium/appium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appium/appium/merges","archive_url":"https://api.github.com/repos/appium/appium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appium/appium/downloads","issues_url":"https://api.github.com/repos/appium/appium/issues{/number}","pulls_url":"https://api.github.com/repos/appium/appium/pulls{/number}","milestones_url":"https://api.github.com/repos/appium/appium/milestones{/number}","notifications_url":"https://api.github.com/repos/appium/appium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appium/appium/labels{/name}","releases_url":"https://api.github.com/repos/appium/appium/releases{/id}","deployments_url":"https://api.github.com/repos/appium/appium/deployments","created_at":"2013-01-09T22:49:50Z","updated_at":"2016-02-17T13:01:33Z","pushed_at":"2016-02-17T20:29:24Z","git_url":"git://github.com/appium/appium.git","ssh_url":"git@github.com:appium/appium.git","clone_url":"https://github.com/appium/appium.git","svn_url":"https://github.com/appium/appium","homepage":"http://appium.io/","size":69928,"stargazers_count":3132,"watchers_count":3132,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1975,"mirror_url":null,"open_issues_count":869,"forks":1975,"open_issues":869,"watchers":3132,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appium/appium/pulls/6153"},"html":{"href":"https://github.com/appium/appium/pull/6153"},"issue":{"href":"https://api.github.com/repos/appium/appium/issues/6153"},"comments":{"href":"https://api.github.com/repos/appium/appium/issues/6153/comments"},"review_comments":{"href":"https://api.github.com/repos/appium/appium/pulls/6153/comments"},"review_comment":{"href":"https://api.github.com/repos/appium/appium/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appium/appium/pulls/6153/commits"},"statuses":{"href":"https://api.github.com/repos/appium/appium/statuses/2d7e1b1340eb935cb67724de4d07fab96e70a79e"}}}}