{"action":"created","comment":{"url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/comments/86362687","pull_request_review_id":7023478,"id":86362687,"diff_hunk":"@@ -24,132 +24,269 @@ describe(\"app\", function() {\n         });\n \n         describe(\"when the user starts a session\", function() {\n-            it(\"should ask them to put or post\", function() {\n+            it(\"should ask them to pick a route\", function() {\n                 return tester\n                     .start()\n                     .check.interaction({\n                         state: 'states:start',\n                         reply: [\n-                            'Choose your destiny:',\n-                            '1. Put something',\n-                            '2. Post something',\n-                            '3. Cause an error'\n+                            'Welcome to CTA train tracker.Pick a route:',\n+                            '1. Red Line',\n+                            '2. Blue Line',\n+                            '3. Brown Line',\n+                            '4. Green Line',\n+                            '5. Orange Line',\n+                            '6. Purple Line',\n+                            '7. Pink Line',\n+                            // '8. Yellow Line',\n+                            '8. Exit'\n                         ].join('\\n')\n                     })\n                     .run();\n             });\n+        });\n \n-            describe(\"when the user chooses to put\", function() {\n-                it(\"should ask them to put something\", function() {\n-                    return tester\n-                        .setup.user.state('states:start')\n-                        .input('1')\n-                        .check.interaction({\n-                            state: 'states:put',\n-                            reply: 'What would you like to put?'\n-                        })\n-                        .run();\n-                });\n+        describe(\"when the user is asked to pick a route e.g red line\", function() {\n+            it(\"should select red line\", function() {\n+                return tester\n+                    .setup.user.state('states:red')\n+                    .input('1')\n+                    .check(function(api) {\n+                        var req = api.http.requests[0];\n+                        assert.deepEqual(req.params, {rt: 'red',\n+                        \t\t\t\t\t\t\t  key: '33305d8dcece4aa58c651c740f88d1e2',\n+                        \t\t\t\t\t\t\t  outputType: 'JSON'});\n+                    })\n+                    .run();\n             });\n \n-            describe(\"when the user chooses to post\", function() {\n-                it(\"should ask them to post something\", function() {\n-                    return tester\n-                        .setup.user.state('states:start')\n-                        .input('2')\n-                        .check.interaction({\n-                            state: 'states:post',\n-                            reply: 'What would you like to post?'\n-                        })\n-                        .run();\n-                });\n+            it(\"should tell them the result\", function() {\n+                return tester\n+                    .setup.user.state('states:red')\n+                    .input('1')","path":"test/app.test.js","position":70,"original_position":70,"commit_id":"bccc4f2c494bc497e7aced1561ea17b81cf151ee","original_commit_id":"bccc4f2c494bc497e7aced1561ea17b81cf151ee","user":{"login":"rudigiesler","id":8234653,"avatar_url":"https://avatars.githubusercontent.com/u/8234653?v=3","gravatar_id":"","url":"https://api.github.com/users/rudigiesler","html_url":"https://github.com/rudigiesler","followers_url":"https://api.github.com/users/rudigiesler/followers","following_url":"https://api.github.com/users/rudigiesler/following{/other_user}","gists_url":"https://api.github.com/users/rudigiesler/gists{/gist_id}","starred_url":"https://api.github.com/users/rudigiesler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudigiesler/subscriptions","organizations_url":"https://api.github.com/users/rudigiesler/orgs","repos_url":"https://api.github.com/users/rudigiesler/repos","events_url":"https://api.github.com/users/rudigiesler/events{/privacy}","received_events_url":"https://api.github.com/users/rudigiesler/received_events","type":"User","site_admin":false},"body":"These tests should probably set the user up in the beginning of the interaction, not in `states:red`, since that is a delegation state and doesn't take any input. It should put the user in `states:start`, and then the `1` input will be the user's selection for red.","created_at":"2016-11-03T14:58:39Z","updated_at":"2016-11-03T14:59:35Z","html_url":"https://github.com/praekelt/go-jsbox-http-request-example/pull/6#discussion_r86362687","pull_request_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/comments/86362687"},"html":{"href":"https://github.com/praekelt/go-jsbox-http-request-example/pull/6#discussion_r86362687"},"pull_request":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/6","id":89285008,"html_url":"https://github.com/praekelt/go-jsbox-http-request-example/pull/6","diff_url":"https://github.com/praekelt/go-jsbox-http-request-example/pull/6.diff","patch_url":"https://github.com/praekelt/go-jsbox-http-request-example/pull/6.patch","issue_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues/6","number":6,"state":"open","locked":false,"title":"base cta train tracker app","user":{"login":"Ntu2koTrevor","id":11028821,"avatar_url":"https://avatars.githubusercontent.com/u/11028821?v=3","gravatar_id":"","url":"https://api.github.com/users/Ntu2koTrevor","html_url":"https://github.com/Ntu2koTrevor","followers_url":"https://api.github.com/users/Ntu2koTrevor/followers","following_url":"https://api.github.com/users/Ntu2koTrevor/following{/other_user}","gists_url":"https://api.github.com/users/Ntu2koTrevor/gists{/gist_id}","starred_url":"https://api.github.com/users/Ntu2koTrevor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ntu2koTrevor/subscriptions","organizations_url":"https://api.github.com/users/Ntu2koTrevor/orgs","repos_url":"https://api.github.com/users/Ntu2koTrevor/repos","events_url":"https://api.github.com/users/Ntu2koTrevor/events{/privacy}","received_events_url":"https://api.github.com/users/Ntu2koTrevor/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-13T21:21:55Z","updated_at":"2016-11-03T14:59:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"216f2d7461a31b4c9242dd7f907d355f37386f90","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/6/commits","review_comments_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/6/comments","review_comment_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues/6/comments","statuses_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/statuses/bccc4f2c494bc497e7aced1561ea17b81cf151ee","head":{"label":"praekelt:feature/issue-5-cta-train-tracker-app","ref":"feature/issue-5-cta-train-tracker-app","sha":"bccc4f2c494bc497e7aced1561ea17b81cf151ee","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":67216335,"name":"go-jsbox-http-request-example","full_name":"praekelt/go-jsbox-http-request-example","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/go-jsbox-http-request-example","description":null,"fork":false,"url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example","forks_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/forks","keys_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/teams","hooks_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/hooks","issue_events_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/events","assignees_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/tags","blobs_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/languages","stargazers_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/stargazers","contributors_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/contributors","subscribers_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/subscribers","subscription_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/subscription","commits_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/merges","archive_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/downloads","issues_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/releases{/id}","deployments_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/deployments","created_at":"2016-09-02T11:14:20Z","updated_at":"2016-09-19T22:19:56Z","pushed_at":"2016-11-03T13:34:45Z","git_url":"git://github.com/praekelt/go-jsbox-http-request-example.git","ssh_url":"git@github.com:praekelt/go-jsbox-http-request-example.git","clone_url":"https://github.com/praekelt/go-jsbox-http-request-example.git","svn_url":"https://github.com/praekelt/go-jsbox-http-request-example","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"praekelt:develop","ref":"develop","sha":"43c72032dd6a19a452526bc2bb9749d54f69029f","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":67216335,"name":"go-jsbox-http-request-example","full_name":"praekelt/go-jsbox-http-request-example","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/go-jsbox-http-request-example","description":null,"fork":false,"url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example","forks_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/forks","keys_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/teams","hooks_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/hooks","issue_events_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/events","assignees_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/tags","blobs_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/languages","stargazers_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/stargazers","contributors_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/contributors","subscribers_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/subscribers","subscription_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/subscription","commits_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/merges","archive_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/downloads","issues_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/releases{/id}","deployments_url":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/deployments","created_at":"2016-09-02T11:14:20Z","updated_at":"2016-09-19T22:19:56Z","pushed_at":"2016-11-03T13:34:45Z","git_url":"git://github.com/praekelt/go-jsbox-http-request-example.git","ssh_url":"git@github.com:praekelt/go-jsbox-http-request-example.git","clone_url":"https://github.com/praekelt/go-jsbox-http-request-example.git","svn_url":"https://github.com/praekelt/go-jsbox-http-request-example","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/6"},"html":{"href":"https://github.com/praekelt/go-jsbox-http-request-example/pull/6"},"issue":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues/6"},"comments":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/praekelt/go-jsbox-http-request-example/statuses/bccc4f2c494bc497e7aced1561ea17b81cf151ee"}}}}
{"actor":{"display_login":"rudigiesler"}}