{"action":"created","comment":{"url":"https://api.github.com/repos/Nestio/lunchmove/pulls/comments/46868018","id":46868018,"diff_hunk":"@@ -8,27 +8,97 @@ var Radio = require('backbone.radio');\n \n // App\n var EntitiesAPI = require('app/entities').API;\n+var Move = require('app/entities').Move;\n var channel = Radio.channel('global');\n \n describe('Entities', function(){\n     describe('API', function(){\n+        beforeEach(function(){\n+            this.entitiesAPI = new EntitiesAPI();\n+        });\n+        \n+        afterEach(function(){\n+            this.entitiesAPI.destroy();\n+        });\n+        \n         describe('initialization', function(){\n-            it('registers an entities:spots request handler');\n-            it('registers an entities:moves request handler');\n-            it('registers an entities:move request handler');\n-            it('registers an entities:move:reset request handler');\n+            \n+            it('registers an entities:spots request handler', function(){\n+                var spots = \"something\";\n+                this.replySpotsStub = sinon.stub(this.entitiesAPI, 'replySpots', function(){ return spots });","path":"static/app/test/specs/entities.spec.js","position":25,"original_position":25,"commit_id":"a7fe231cd0e280ad5b0a13fc42bbb52c6a4b5d98","original_commit_id":"a7fe231cd0e280ad5b0a13fc42bbb52c6a4b5d98","user":{"login":"bnjmnhndrsn","id":3485806,"avatar_url":"https://avatars.githubusercontent.com/u/3485806?v=3","gravatar_id":"","url":"https://api.github.com/users/bnjmnhndrsn","html_url":"https://github.com/bnjmnhndrsn","followers_url":"https://api.github.com/users/bnjmnhndrsn/followers","following_url":"https://api.github.com/users/bnjmnhndrsn/following{/other_user}","gists_url":"https://api.github.com/users/bnjmnhndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/bnjmnhndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnjmnhndrsn/subscriptions","organizations_url":"https://api.github.com/users/bnjmnhndrsn/orgs","repos_url":"https://api.github.com/users/bnjmnhndrsn/repos","events_url":"https://api.github.com/users/bnjmnhndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/bnjmnhndrsn/received_events","type":"User","site_admin":false},"body":"remember to store these stubs and those in the other tests as local variables","created_at":"2015-12-07T19:53:22Z","updated_at":"2015-12-07T19:53:22Z","html_url":"https://github.com/Nestio/lunchmove/pull/11#discussion_r46868018","pull_request_url":"https://api.github.com/repos/Nestio/lunchmove/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/Nestio/lunchmove/pulls/comments/46868018"},"html":{"href":"https://github.com/Nestio/lunchmove/pull/11#discussion_r46868018"},"pull_request":{"href":"https://api.github.com/repos/Nestio/lunchmove/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/Nestio/lunchmove/pulls/11","id":52734572,"html_url":"https://github.com/Nestio/lunchmove/pull/11","diff_url":"https://github.com/Nestio/lunchmove/pull/11.diff","patch_url":"https://github.com/Nestio/lunchmove/pull/11.patch","issue_url":"https://api.github.com/repos/Nestio/lunchmove/issues/11","number":11,"state":"open","locked":false,"title":"Add Entities Tests.","user":{"login":"cisacke","id":13224128,"avatar_url":"https://avatars.githubusercontent.com/u/13224128?v=3","gravatar_id":"","url":"https://api.github.com/users/cisacke","html_url":"https://github.com/cisacke","followers_url":"https://api.github.com/users/cisacke/followers","following_url":"https://api.github.com/users/cisacke/following{/other_user}","gists_url":"https://api.github.com/users/cisacke/gists{/gist_id}","starred_url":"https://api.github.com/users/cisacke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cisacke/subscriptions","organizations_url":"https://api.github.com/users/cisacke/orgs","repos_url":"https://api.github.com/users/cisacke/repos","events_url":"https://api.github.com/users/cisacke/events{/privacy}","received_events_url":"https://api.github.com/users/cisacke/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-04T23:21:27Z","updated_at":"2015-12-07T19:53:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b694f7747098333d5535b7517a905c1f8b0feb0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Nestio/lunchmove/pulls/11/commits","review_comments_url":"https://api.github.com/repos/Nestio/lunchmove/pulls/11/comments","review_comment_url":"https://api.github.com/repos/Nestio/lunchmove/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nestio/lunchmove/issues/11/comments","statuses_url":"https://api.github.com/repos/Nestio/lunchmove/statuses/a7fe231cd0e280ad5b0a13fc42bbb52c6a4b5d98","head":{"label":"Nestio:tests_entities","ref":"tests_entities","sha":"a7fe231cd0e280ad5b0a13fc42bbb52c6a4b5d98","user":{"login":"Nestio","id":691019,"avatar_url":"https://avatars.githubusercontent.com/u/691019?v=3","gravatar_id":"","url":"https://api.github.com/users/Nestio","html_url":"https://github.com/Nestio","followers_url":"https://api.github.com/users/Nestio/followers","following_url":"https://api.github.com/users/Nestio/following{/other_user}","gists_url":"https://api.github.com/users/Nestio/gists{/gist_id}","starred_url":"https://api.github.com/users/Nestio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nestio/subscriptions","organizations_url":"https://api.github.com/users/Nestio/orgs","repos_url":"https://api.github.com/users/Nestio/repos","events_url":"https://api.github.com/users/Nestio/events{/privacy}","received_events_url":"https://api.github.com/users/Nestio/received_events","type":"Organization","site_admin":false},"repo":{"id":41868846,"name":"lunchmove","full_name":"Nestio/lunchmove","owner":{"login":"Nestio","id":691019,"avatar_url":"https://avatars.githubusercontent.com/u/691019?v=3","gravatar_id":"","url":"https://api.github.com/users/Nestio","html_url":"https://github.com/Nestio","followers_url":"https://api.github.com/users/Nestio/followers","following_url":"https://api.github.com/users/Nestio/following{/other_user}","gists_url":"https://api.github.com/users/Nestio/gists{/gist_id}","starred_url":"https://api.github.com/users/Nestio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nestio/subscriptions","organizations_url":"https://api.github.com/users/Nestio/orgs","repos_url":"https://api.github.com/users/Nestio/repos","events_url":"https://api.github.com/users/Nestio/events{/privacy}","received_events_url":"https://api.github.com/users/Nestio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nestio/lunchmove","description":"what's the move for lunch?","fork":false,"url":"https://api.github.com/repos/Nestio/lunchmove","forks_url":"https://api.github.com/repos/Nestio/lunchmove/forks","keys_url":"https://api.github.com/repos/Nestio/lunchmove/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nestio/lunchmove/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nestio/lunchmove/teams","hooks_url":"https://api.github.com/repos/Nestio/lunchmove/hooks","issue_events_url":"https://api.github.com/repos/Nestio/lunchmove/issues/events{/number}","events_url":"https://api.github.com/repos/Nestio/lunchmove/events","assignees_url":"https://api.github.com/repos/Nestio/lunchmove/assignees{/user}","branches_url":"https://api.github.com/repos/Nestio/lunchmove/branches{/branch}","tags_url":"https://api.github.com/repos/Nestio/lunchmove/tags","blobs_url":"https://api.github.com/repos/Nestio/lunchmove/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nestio/lunchmove/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nestio/lunchmove/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nestio/lunchmove/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nestio/lunchmove/statuses/{sha}","languages_url":"https://api.github.com/repos/Nestio/lunchmove/languages","stargazers_url":"https://api.github.com/repos/Nestio/lunchmove/stargazers","contributors_url":"https://api.github.com/repos/Nestio/lunchmove/contributors","subscribers_url":"https://api.github.com/repos/Nestio/lunchmove/subscribers","subscription_url":"https://api.github.com/repos/Nestio/lunchmove/subscription","commits_url":"https://api.github.com/repos/Nestio/lunchmove/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nestio/lunchmove/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nestio/lunchmove/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nestio/lunchmove/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nestio/lunchmove/contents/{+path}","compare_url":"https://api.github.com/repos/Nestio/lunchmove/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nestio/lunchmove/merges","archive_url":"https://api.github.com/repos/Nestio/lunchmove/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nestio/lunchmove/downloads","issues_url":"https://api.github.com/repos/Nestio/lunchmove/issues{/number}","pulls_url":"https://api.github.com/repos/Nestio/lunchmove/pulls{/number}","milestones_url":"https://api.github.com/repos/Nestio/lunchmove/milestones{/number}","notifications_url":"https://api.github.com/repos/Nestio/lunchmove/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nestio/lunchmove/labels{/name}","releases_url":"https://api.github.com/repos/Nestio/lunchmove/releases{/id}","created_at":"2015-09-03T15:51:15Z","updated_at":"2015-11-18T16:15:35Z","pushed_at":"2015-12-07T18:58:27Z","git_url":"git://github.com/Nestio/lunchmove.git","ssh_url":"git@github.com:Nestio/lunchmove.git","clone_url":"https://github.com/Nestio/lunchmove.git","svn_url":"https://github.com/Nestio/lunchmove","homepage":null,"size":10578,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Nestio:master","ref":"master","sha":"d57c3f535890a081705d7916ae1a0205088177e6","user":{"login":"Nestio","id":691019,"avatar_url":"https://avatars.githubusercontent.com/u/691019?v=3","gravatar_id":"","url":"https://api.github.com/users/Nestio","html_url":"https://github.com/Nestio","followers_url":"https://api.github.com/users/Nestio/followers","following_url":"https://api.github.com/users/Nestio/following{/other_user}","gists_url":"https://api.github.com/users/Nestio/gists{/gist_id}","starred_url":"https://api.github.com/users/Nestio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nestio/subscriptions","organizations_url":"https://api.github.com/users/Nestio/orgs","repos_url":"https://api.github.com/users/Nestio/repos","events_url":"https://api.github.com/users/Nestio/events{/privacy}","received_events_url":"https://api.github.com/users/Nestio/received_events","type":"Organization","site_admin":false},"repo":{"id":41868846,"name":"lunchmove","full_name":"Nestio/lunchmove","owner":{"login":"Nestio","id":691019,"avatar_url":"https://avatars.githubusercontent.com/u/691019?v=3","gravatar_id":"","url":"https://api.github.com/users/Nestio","html_url":"https://github.com/Nestio","followers_url":"https://api.github.com/users/Nestio/followers","following_url":"https://api.github.com/users/Nestio/following{/other_user}","gists_url":"https://api.github.com/users/Nestio/gists{/gist_id}","starred_url":"https://api.github.com/users/Nestio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nestio/subscriptions","organizations_url":"https://api.github.com/users/Nestio/orgs","repos_url":"https://api.github.com/users/Nestio/repos","events_url":"https://api.github.com/users/Nestio/events{/privacy}","received_events_url":"https://api.github.com/users/Nestio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nestio/lunchmove","description":"what's the move for lunch?","fork":false,"url":"https://api.github.com/repos/Nestio/lunchmove","forks_url":"https://api.github.com/repos/Nestio/lunchmove/forks","keys_url":"https://api.github.com/repos/Nestio/lunchmove/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nestio/lunchmove/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nestio/lunchmove/teams","hooks_url":"https://api.github.com/repos/Nestio/lunchmove/hooks","issue_events_url":"https://api.github.com/repos/Nestio/lunchmove/issues/events{/number}","events_url":"https://api.github.com/repos/Nestio/lunchmove/events","assignees_url":"https://api.github.com/repos/Nestio/lunchmove/assignees{/user}","branches_url":"https://api.github.com/repos/Nestio/lunchmove/branches{/branch}","tags_url":"https://api.github.com/repos/Nestio/lunchmove/tags","blobs_url":"https://api.github.com/repos/Nestio/lunchmove/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nestio/lunchmove/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nestio/lunchmove/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nestio/lunchmove/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nestio/lunchmove/statuses/{sha}","languages_url":"https://api.github.com/repos/Nestio/lunchmove/languages","stargazers_url":"https://api.github.com/repos/Nestio/lunchmove/stargazers","contributors_url":"https://api.github.com/repos/Nestio/lunchmove/contributors","subscribers_url":"https://api.github.com/repos/Nestio/lunchmove/subscribers","subscription_url":"https://api.github.com/repos/Nestio/lunchmove/subscription","commits_url":"https://api.github.com/repos/Nestio/lunchmove/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nestio/lunchmove/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nestio/lunchmove/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nestio/lunchmove/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nestio/lunchmove/contents/{+path}","compare_url":"https://api.github.com/repos/Nestio/lunchmove/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nestio/lunchmove/merges","archive_url":"https://api.github.com/repos/Nestio/lunchmove/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nestio/lunchmove/downloads","issues_url":"https://api.github.com/repos/Nestio/lunchmove/issues{/number}","pulls_url":"https://api.github.com/repos/Nestio/lunchmove/pulls{/number}","milestones_url":"https://api.github.com/repos/Nestio/lunchmove/milestones{/number}","notifications_url":"https://api.github.com/repos/Nestio/lunchmove/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nestio/lunchmove/labels{/name}","releases_url":"https://api.github.com/repos/Nestio/lunchmove/releases{/id}","created_at":"2015-09-03T15:51:15Z","updated_at":"2015-11-18T16:15:35Z","pushed_at":"2015-12-07T18:58:27Z","git_url":"git://github.com/Nestio/lunchmove.git","ssh_url":"git@github.com:Nestio/lunchmove.git","clone_url":"https://github.com/Nestio/lunchmove.git","svn_url":"https://github.com/Nestio/lunchmove","homepage":null,"size":10578,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nestio/lunchmove/pulls/11"},"html":{"href":"https://github.com/Nestio/lunchmove/pull/11"},"issue":{"href":"https://api.github.com/repos/Nestio/lunchmove/issues/11"},"comments":{"href":"https://api.github.com/repos/Nestio/lunchmove/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/Nestio/lunchmove/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/Nestio/lunchmove/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nestio/lunchmove/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/Nestio/lunchmove/statuses/a7fe231cd0e280ad5b0a13fc42bbb52c6a4b5d98"}}}}