{"action":"created","comment":{"url":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/comments/23707042","id":23707042,"diff_hunk":"@@ -147,4 +147,29 @@ def setup\n       assert page.has_content?(\"Order #{@order.id}\")\n     end\n   end\n+\n+  test \"an admin can change order status\" do\n+    ApplicationController.any_instance.stubs(:current_user).returns(user)\n+    @non_admin = User.create(username: 'yayaya',\n+                             password: 'password',\n+                             first_name: 'John',\n+                             last_name: 'Doe',\n+                             email: 'unique@yahoo.com',\n+                             role: 0)\n+    @order = Order.create(total_cost: 100, user_id: @non_admin.id, status: \"ordered\")\n+    @item = @order.items.create(title: 'coffee', description: 'black nectar of the gods', price: 1200)\n+\n+    visit root_url\n+    click_link_or_button('Admin Dashboard')","path":"test/integration/admin_login_test.rb","position":17,"original_position":17,"commit_id":"d47e81ee35f67740ed343436cce26ea33cc7324e","original_commit_id":"d47e81ee35f67740ed343436cce26ea33cc7324e","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-01-28T17:58:20Z","updated_at":"2015-01-28T17:58:20Z","html_url":"https://github.com/scottcrawford03/dinner_dash/pull/96#discussion_r23707042","pull_request_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/comments/23707042"},"html":{"href":"https://github.com/scottcrawford03/dinner_dash/pull/96#discussion_r23707042"},"pull_request":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/96","id":28214812,"html_url":"https://github.com/scottcrawford03/dinner_dash/pull/96","diff_url":"https://github.com/scottcrawford03/dinner_dash/pull/96.diff","patch_url":"https://github.com/scottcrawford03/dinner_dash/pull/96.patch","issue_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues/96","number":96,"state":"open","locked":false,"title":"Admin dash","user":{"login":"scottcrawford03","id":8398867,"avatar_url":"https://avatars.githubusercontent.com/u/8398867?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcrawford03","html_url":"https://github.com/scottcrawford03","followers_url":"https://api.github.com/users/scottcrawford03/followers","following_url":"https://api.github.com/users/scottcrawford03/following{/other_user}","gists_url":"https://api.github.com/users/scottcrawford03/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcrawford03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcrawford03/subscriptions","organizations_url":"https://api.github.com/users/scottcrawford03/orgs","repos_url":"https://api.github.com/users/scottcrawford03/repos","events_url":"https://api.github.com/users/scottcrawford03/events{/privacy}","received_events_url":"https://api.github.com/users/scottcrawford03/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-28T17:58:13Z","updated_at":"2015-01-28T17:58:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59de6698f8fc715a6d2bbeec78e92db18ea73dad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/96/commits","review_comments_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/96/comments","review_comment_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues/96/comments","statuses_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/statuses/d47e81ee35f67740ed343436cce26ea33cc7324e","head":{"label":"scottcrawford03:admin-dash","ref":"admin-dash","sha":"d47e81ee35f67740ed343436cce26ea33cc7324e","user":{"login":"scottcrawford03","id":8398867,"avatar_url":"https://avatars.githubusercontent.com/u/8398867?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcrawford03","html_url":"https://github.com/scottcrawford03","followers_url":"https://api.github.com/users/scottcrawford03/followers","following_url":"https://api.github.com/users/scottcrawford03/following{/other_user}","gists_url":"https://api.github.com/users/scottcrawford03/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcrawford03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcrawford03/subscriptions","organizations_url":"https://api.github.com/users/scottcrawford03/orgs","repos_url":"https://api.github.com/users/scottcrawford03/repos","events_url":"https://api.github.com/users/scottcrawford03/events{/privacy}","received_events_url":"https://api.github.com/users/scottcrawford03/received_events","type":"User","site_admin":false},"repo":{"id":29539688,"name":"dinner_dash","full_name":"scottcrawford03/dinner_dash","owner":{"login":"scottcrawford03","id":8398867,"avatar_url":"https://avatars.githubusercontent.com/u/8398867?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcrawford03","html_url":"https://github.com/scottcrawford03","followers_url":"https://api.github.com/users/scottcrawford03/followers","following_url":"https://api.github.com/users/scottcrawford03/following{/other_user}","gists_url":"https://api.github.com/users/scottcrawford03/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcrawford03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcrawford03/subscriptions","organizations_url":"https://api.github.com/users/scottcrawford03/orgs","repos_url":"https://api.github.com/users/scottcrawford03/repos","events_url":"https://api.github.com/users/scottcrawford03/events{/privacy}","received_events_url":"https://api.github.com/users/scottcrawford03/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottcrawford03/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/scottcrawford03/dinner_dash","forks_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/forks","keys_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/teams","hooks_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/events","assignees_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/tags","blobs_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/subscription","commits_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/merges","archive_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/downloads","issues_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/releases{/id}","created_at":"2015-01-20T16:36:21Z","updated_at":"2015-01-28T17:56:39Z","pushed_at":"2015-01-28T17:58:05Z","git_url":"git://github.com/scottcrawford03/dinner_dash.git","ssh_url":"git@github.com:scottcrawford03/dinner_dash.git","clone_url":"https://github.com/scottcrawford03/dinner_dash.git","svn_url":"https://github.com/scottcrawford03/dinner_dash","homepage":null,"size":8828,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":13,"forks":2,"open_issues":13,"watchers":0,"default_branch":"master"}},"base":{"label":"scottcrawford03:master","ref":"master","sha":"ff76bf5eeadb6c56b60e7a4cf544ef74399a13a6","user":{"login":"scottcrawford03","id":8398867,"avatar_url":"https://avatars.githubusercontent.com/u/8398867?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcrawford03","html_url":"https://github.com/scottcrawford03","followers_url":"https://api.github.com/users/scottcrawford03/followers","following_url":"https://api.github.com/users/scottcrawford03/following{/other_user}","gists_url":"https://api.github.com/users/scottcrawford03/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcrawford03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcrawford03/subscriptions","organizations_url":"https://api.github.com/users/scottcrawford03/orgs","repos_url":"https://api.github.com/users/scottcrawford03/repos","events_url":"https://api.github.com/users/scottcrawford03/events{/privacy}","received_events_url":"https://api.github.com/users/scottcrawford03/received_events","type":"User","site_admin":false},"repo":{"id":29539688,"name":"dinner_dash","full_name":"scottcrawford03/dinner_dash","owner":{"login":"scottcrawford03","id":8398867,"avatar_url":"https://avatars.githubusercontent.com/u/8398867?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcrawford03","html_url":"https://github.com/scottcrawford03","followers_url":"https://api.github.com/users/scottcrawford03/followers","following_url":"https://api.github.com/users/scottcrawford03/following{/other_user}","gists_url":"https://api.github.com/users/scottcrawford03/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcrawford03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcrawford03/subscriptions","organizations_url":"https://api.github.com/users/scottcrawford03/orgs","repos_url":"https://api.github.com/users/scottcrawford03/repos","events_url":"https://api.github.com/users/scottcrawford03/events{/privacy}","received_events_url":"https://api.github.com/users/scottcrawford03/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottcrawford03/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/scottcrawford03/dinner_dash","forks_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/forks","keys_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/teams","hooks_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/events","assignees_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/tags","blobs_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/subscription","commits_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/merges","archive_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/downloads","issues_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/scottcrawford03/dinner_dash/releases{/id}","created_at":"2015-01-20T16:36:21Z","updated_at":"2015-01-28T17:56:39Z","pushed_at":"2015-01-28T17:58:05Z","git_url":"git://github.com/scottcrawford03/dinner_dash.git","ssh_url":"git@github.com:scottcrawford03/dinner_dash.git","clone_url":"https://github.com/scottcrawford03/dinner_dash.git","svn_url":"https://github.com/scottcrawford03/dinner_dash","homepage":null,"size":8828,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":13,"forks":2,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/96"},"html":{"href":"https://github.com/scottcrawford03/dinner_dash/pull/96"},"issue":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues/96"},"comments":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/scottcrawford03/dinner_dash/statuses/d47e81ee35f67740ed343436cce26ea33cc7324e"}}}}