{"action":"opened","number":144,"pull_request":{"url":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls/144","id":44986477,"html_url":"https://github.com/detroit-labs/hubot-badger/pull/144","diff_url":"https://github.com/detroit-labs/hubot-badger/pull/144.diff","patch_url":"https://github.com/detroit-labs/hubot-badger/pull/144.patch","issue_url":"https://api.github.com/repos/detroit-labs/hubot-badger/issues/144","number":144,"state":"open","locked":false,"title":"Add tests for scripts","user":{"login":"macklinu","id":2344137,"avatar_url":"https://avatars.githubusercontent.com/u/2344137?v=3","gravatar_id":"","url":"https://api.github.com/users/macklinu","html_url":"https://github.com/macklinu","followers_url":"https://api.github.com/users/macklinu/followers","following_url":"https://api.github.com/users/macklinu/following{/other_user}","gists_url":"https://api.github.com/users/macklinu/gists{/gist_id}","starred_url":"https://api.github.com/users/macklinu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macklinu/subscriptions","organizations_url":"https://api.github.com/users/macklinu/orgs","repos_url":"https://api.github.com/users/macklinu/repos","events_url":"https://api.github.com/users/macklinu/events{/privacy}","received_events_url":"https://api.github.com/users/macklinu/received_events","type":"User","site_admin":false},"body":"Let's write tests to know our scripts will work how we expect them to!\r\n\r\nInspired by https://amussey.github.io/2015/08/11/testing-hubot-scripts.html","created_at":"2015-09-14T22:00:03Z","updated_at":"2015-09-14T22:00:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls/144/commits","review_comments_url":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls/144/comments","review_comment_url":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/detroit-labs/hubot-badger/issues/144/comments","statuses_url":"https://api.github.com/repos/detroit-labs/hubot-badger/statuses/e103a4ff2f2eaf6acc4d09194dd08a7b9a9eae5e","head":{"label":"detroit-labs:add-tests","ref":"add-tests","sha":"e103a4ff2f2eaf6acc4d09194dd08a7b9a9eae5e","user":{"login":"detroit-labs","id":805819,"avatar_url":"https://avatars.githubusercontent.com/u/805819?v=3","gravatar_id":"","url":"https://api.github.com/users/detroit-labs","html_url":"https://github.com/detroit-labs","followers_url":"https://api.github.com/users/detroit-labs/followers","following_url":"https://api.github.com/users/detroit-labs/following{/other_user}","gists_url":"https://api.github.com/users/detroit-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/detroit-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detroit-labs/subscriptions","organizations_url":"https://api.github.com/users/detroit-labs/orgs","repos_url":"https://api.github.com/users/detroit-labs/repos","events_url":"https://api.github.com/users/detroit-labs/events{/privacy}","received_events_url":"https://api.github.com/users/detroit-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":8279604,"name":"hubot-badger","full_name":"detroit-labs/hubot-badger","owner":{"login":"detroit-labs","id":805819,"avatar_url":"https://avatars.githubusercontent.com/u/805819?v=3","gravatar_id":"","url":"https://api.github.com/users/detroit-labs","html_url":"https://github.com/detroit-labs","followers_url":"https://api.github.com/users/detroit-labs/followers","following_url":"https://api.github.com/users/detroit-labs/following{/other_user}","gists_url":"https://api.github.com/users/detroit-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/detroit-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detroit-labs/subscriptions","organizations_url":"https://api.github.com/users/detroit-labs/orgs","repos_url":"https://api.github.com/users/detroit-labs/repos","events_url":"https://api.github.com/users/detroit-labs/events{/privacy}","received_events_url":"https://api.github.com/users/detroit-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/detroit-labs/hubot-badger","description":"The Crazy Nastyass Hubot Badger","fork":false,"url":"https://api.github.com/repos/detroit-labs/hubot-badger","forks_url":"https://api.github.com/repos/detroit-labs/hubot-badger/forks","keys_url":"https://api.github.com/repos/detroit-labs/hubot-badger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/detroit-labs/hubot-badger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/detroit-labs/hubot-badger/teams","hooks_url":"https://api.github.com/repos/detroit-labs/hubot-badger/hooks","issue_events_url":"https://api.github.com/repos/detroit-labs/hubot-badger/issues/events{/number}","events_url":"https://api.github.com/repos/detroit-labs/hubot-badger/events","assignees_url":"https://api.github.com/repos/detroit-labs/hubot-badger/assignees{/user}","branches_url":"https://api.github.com/repos/detroit-labs/hubot-badger/branches{/branch}","tags_url":"https://api.github.com/repos/detroit-labs/hubot-badger/tags","blobs_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/refs{/sha}","trees_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/detroit-labs/hubot-badger/statuses/{sha}","languages_url":"https://api.github.com/repos/detroit-labs/hubot-badger/languages","stargazers_url":"https://api.github.com/repos/detroit-labs/hubot-badger/stargazers","contributors_url":"https://api.github.com/repos/detroit-labs/hubot-badger/contributors","subscribers_url":"https://api.github.com/repos/detroit-labs/hubot-badger/subscribers","subscription_url":"https://api.github.com/repos/detroit-labs/hubot-badger/subscription","commits_url":"https://api.github.com/repos/detroit-labs/hubot-badger/commits{/sha}","git_commits_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/commits{/sha}","comments_url":"https://api.github.com/repos/detroit-labs/hubot-badger/comments{/number}","issue_comment_url":"https://api.github.com/repos/detroit-labs/hubot-badger/issues/comments{/number}","contents_url":"https://api.github.com/repos/detroit-labs/hubot-badger/contents/{+path}","compare_url":"https://api.github.com/repos/detroit-labs/hubot-badger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/detroit-labs/hubot-badger/merges","archive_url":"https://api.github.com/repos/detroit-labs/hubot-badger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/detroit-labs/hubot-badger/downloads","issues_url":"https://api.github.com/repos/detroit-labs/hubot-badger/issues{/number}","pulls_url":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls{/number}","milestones_url":"https://api.github.com/repos/detroit-labs/hubot-badger/milestones{/number}","notifications_url":"https://api.github.com/repos/detroit-labs/hubot-badger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/detroit-labs/hubot-badger/labels{/name}","releases_url":"https://api.github.com/repos/detroit-labs/hubot-badger/releases{/id}","created_at":"2013-02-18T23:39:33Z","updated_at":"2015-08-13T18:38:31Z","pushed_at":"2015-09-14T21:58:03Z","git_url":"git://github.com/detroit-labs/hubot-badger.git","ssh_url":"git@github.com:detroit-labs/hubot-badger.git","clone_url":"https://github.com/detroit-labs/hubot-badger.git","svn_url":"https://github.com/detroit-labs/hubot-badger","homepage":null,"size":3975,"stargazers_count":4,"watchers_count":4,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":4,"forks":23,"open_issues":4,"watchers":4,"default_branch":"master"}},"base":{"label":"detroit-labs:master","ref":"master","sha":"1e719fbd75e557ed74f5413fd36fa4d9b0a2972a","user":{"login":"detroit-labs","id":805819,"avatar_url":"https://avatars.githubusercontent.com/u/805819?v=3","gravatar_id":"","url":"https://api.github.com/users/detroit-labs","html_url":"https://github.com/detroit-labs","followers_url":"https://api.github.com/users/detroit-labs/followers","following_url":"https://api.github.com/users/detroit-labs/following{/other_user}","gists_url":"https://api.github.com/users/detroit-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/detroit-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detroit-labs/subscriptions","organizations_url":"https://api.github.com/users/detroit-labs/orgs","repos_url":"https://api.github.com/users/detroit-labs/repos","events_url":"https://api.github.com/users/detroit-labs/events{/privacy}","received_events_url":"https://api.github.com/users/detroit-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":8279604,"name":"hubot-badger","full_name":"detroit-labs/hubot-badger","owner":{"login":"detroit-labs","id":805819,"avatar_url":"https://avatars.githubusercontent.com/u/805819?v=3","gravatar_id":"","url":"https://api.github.com/users/detroit-labs","html_url":"https://github.com/detroit-labs","followers_url":"https://api.github.com/users/detroit-labs/followers","following_url":"https://api.github.com/users/detroit-labs/following{/other_user}","gists_url":"https://api.github.com/users/detroit-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/detroit-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detroit-labs/subscriptions","organizations_url":"https://api.github.com/users/detroit-labs/orgs","repos_url":"https://api.github.com/users/detroit-labs/repos","events_url":"https://api.github.com/users/detroit-labs/events{/privacy}","received_events_url":"https://api.github.com/users/detroit-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/detroit-labs/hubot-badger","description":"The Crazy Nastyass Hubot Badger","fork":false,"url":"https://api.github.com/repos/detroit-labs/hubot-badger","forks_url":"https://api.github.com/repos/detroit-labs/hubot-badger/forks","keys_url":"https://api.github.com/repos/detroit-labs/hubot-badger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/detroit-labs/hubot-badger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/detroit-labs/hubot-badger/teams","hooks_url":"https://api.github.com/repos/detroit-labs/hubot-badger/hooks","issue_events_url":"https://api.github.com/repos/detroit-labs/hubot-badger/issues/events{/number}","events_url":"https://api.github.com/repos/detroit-labs/hubot-badger/events","assignees_url":"https://api.github.com/repos/detroit-labs/hubot-badger/assignees{/user}","branches_url":"https://api.github.com/repos/detroit-labs/hubot-badger/branches{/branch}","tags_url":"https://api.github.com/repos/detroit-labs/hubot-badger/tags","blobs_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/refs{/sha}","trees_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/detroit-labs/hubot-badger/statuses/{sha}","languages_url":"https://api.github.com/repos/detroit-labs/hubot-badger/languages","stargazers_url":"https://api.github.com/repos/detroit-labs/hubot-badger/stargazers","contributors_url":"https://api.github.com/repos/detroit-labs/hubot-badger/contributors","subscribers_url":"https://api.github.com/repos/detroit-labs/hubot-badger/subscribers","subscription_url":"https://api.github.com/repos/detroit-labs/hubot-badger/subscription","commits_url":"https://api.github.com/repos/detroit-labs/hubot-badger/commits{/sha}","git_commits_url":"https://api.github.com/repos/detroit-labs/hubot-badger/git/commits{/sha}","comments_url":"https://api.github.com/repos/detroit-labs/hubot-badger/comments{/number}","issue_comment_url":"https://api.github.com/repos/detroit-labs/hubot-badger/issues/comments{/number}","contents_url":"https://api.github.com/repos/detroit-labs/hubot-badger/contents/{+path}","compare_url":"https://api.github.com/repos/detroit-labs/hubot-badger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/detroit-labs/hubot-badger/merges","archive_url":"https://api.github.com/repos/detroit-labs/hubot-badger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/detroit-labs/hubot-badger/downloads","issues_url":"https://api.github.com/repos/detroit-labs/hubot-badger/issues{/number}","pulls_url":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls{/number}","milestones_url":"https://api.github.com/repos/detroit-labs/hubot-badger/milestones{/number}","notifications_url":"https://api.github.com/repos/detroit-labs/hubot-badger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/detroit-labs/hubot-badger/labels{/name}","releases_url":"https://api.github.com/repos/detroit-labs/hubot-badger/releases{/id}","created_at":"2013-02-18T23:39:33Z","updated_at":"2015-08-13T18:38:31Z","pushed_at":"2015-09-14T21:58:03Z","git_url":"git://github.com/detroit-labs/hubot-badger.git","ssh_url":"git@github.com:detroit-labs/hubot-badger.git","clone_url":"https://github.com/detroit-labs/hubot-badger.git","svn_url":"https://github.com/detroit-labs/hubot-badger","homepage":null,"size":3975,"stargazers_count":4,"watchers_count":4,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":4,"forks":23,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls/144"},"html":{"href":"https://github.com/detroit-labs/hubot-badger/pull/144"},"issue":{"href":"https://api.github.com/repos/detroit-labs/hubot-badger/issues/144"},"comments":{"href":"https://api.github.com/repos/detroit-labs/hubot-badger/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/detroit-labs/hubot-badger/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/detroit-labs/hubot-badger/statuses/e103a4ff2f2eaf6acc4d09194dd08a7b9a9eae5e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":38,"deletions":1,"changed_files":4}}