{"action":"created","comment":{"url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/comments/44936527","id":44936527,"diff_hunk":"@@ -0,0 +1,41 @@\n+require 'test_helper'\n+\n+class AdminCanSeeOrdersTest < ActionDispatch::IntegrationTest\n+  include CategoryItemsSetup\n+  test 'logged in admin sees dashboard page with orders' do\n+    admin = User.create(username: 'admin',\n+                        password: 'password',\n+                        role:      1)\n+    create_items_associated_with_orders\n+    ApplicationController.any_instance.stubs(:current_user).returns(admin)\n+    visit login_path\n+    fill_in 'Username', with: 'admin'\n+    fill_in 'Password', with: 'password'\n+    click_button 'Login'\n+\n+    assert page.has_content?('Welcome, Admin!')\n+    within('.all-orders') do\n+      assert page.has_content?('Status')\n+      assert page.has_content?('Total Price')\n+      assert page.has_content?('$160')\n+      assert page.has_link?('View Order')\n+    end\n+  end\n+  test 'admin sees order numbers by status' do\n+    admin = User.create(username: 'admin',","path":"test/integration/admin_can_see_orders_test.rb","position":25,"original_position":25,"commit_id":"9739f9100e1ceb05faf2b05bd802f5005a49b27f","original_commit_id":"9739f9100e1ceb05faf2b05bd802f5005a49b27f","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-11-16T15:29:55Z","updated_at":"2015-11-16T15:29:55Z","html_url":"https://github.com/MattRooney/GnarPow/pull/65#discussion_r44936527","pull_request_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/comments/44936527"},"html":{"href":"https://github.com/MattRooney/GnarPow/pull/65#discussion_r44936527"},"pull_request":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/65","id":50823888,"html_url":"https://github.com/MattRooney/GnarPow/pull/65","diff_url":"https://github.com/MattRooney/GnarPow/pull/65.diff","patch_url":"https://github.com/MattRooney/GnarPow/pull/65.patch","issue_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/65","number":65,"state":"open","locked":false,"title":"Closes #31 admin orders","user":{"login":"edgarduran","id":11325650,"avatar_url":"https://avatars.githubusercontent.com/u/11325650?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarduran","html_url":"https://github.com/edgarduran","followers_url":"https://api.github.com/users/edgarduran/followers","following_url":"https://api.github.com/users/edgarduran/following{/other_user}","gists_url":"https://api.github.com/users/edgarduran/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarduran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarduran/subscriptions","organizations_url":"https://api.github.com/users/edgarduran/orgs","repos_url":"https://api.github.com/users/edgarduran/repos","events_url":"https://api.github.com/users/edgarduran/events{/privacy}","received_events_url":"https://api.github.com/users/edgarduran/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T15:29:47Z","updated_at":"2015-11-16T15:29:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/65/commits","review_comments_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/65/comments","review_comment_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/65/comments","statuses_url":"https://api.github.com/repos/MattRooney/GnarPow/statuses/9739f9100e1ceb05faf2b05bd802f5005a49b27f","head":{"label":"MattRooney:31-Admin-orders","ref":"31-Admin-orders","sha":"9739f9100e1ceb05faf2b05bd802f5005a49b27f","user":{"login":"MattRooney","id":11494414,"avatar_url":"https://avatars.githubusercontent.com/u/11494414?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRooney","html_url":"https://github.com/MattRooney","followers_url":"https://api.github.com/users/MattRooney/followers","following_url":"https://api.github.com/users/MattRooney/following{/other_user}","gists_url":"https://api.github.com/users/MattRooney/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRooney/subscriptions","organizations_url":"https://api.github.com/users/MattRooney/orgs","repos_url":"https://api.github.com/users/MattRooney/repos","events_url":"https://api.github.com/users/MattRooney/events{/privacy}","received_events_url":"https://api.github.com/users/MattRooney/received_events","type":"User","site_admin":false},"repo":{"id":45856045,"name":"GnarPow","full_name":"MattRooney/GnarPow","owner":{"login":"MattRooney","id":11494414,"avatar_url":"https://avatars.githubusercontent.com/u/11494414?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRooney","html_url":"https://github.com/MattRooney","followers_url":"https://api.github.com/users/MattRooney/followers","following_url":"https://api.github.com/users/MattRooney/following{/other_user}","gists_url":"https://api.github.com/users/MattRooney/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRooney/subscriptions","organizations_url":"https://api.github.com/users/MattRooney/orgs","repos_url":"https://api.github.com/users/MattRooney/repos","events_url":"https://api.github.com/users/MattRooney/events{/privacy}","received_events_url":"https://api.github.com/users/MattRooney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MattRooney/GnarPow","description":"","fork":false,"url":"https://api.github.com/repos/MattRooney/GnarPow","forks_url":"https://api.github.com/repos/MattRooney/GnarPow/forks","keys_url":"https://api.github.com/repos/MattRooney/GnarPow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MattRooney/GnarPow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MattRooney/GnarPow/teams","hooks_url":"https://api.github.com/repos/MattRooney/GnarPow/hooks","issue_events_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/events{/number}","events_url":"https://api.github.com/repos/MattRooney/GnarPow/events","assignees_url":"https://api.github.com/repos/MattRooney/GnarPow/assignees{/user}","branches_url":"https://api.github.com/repos/MattRooney/GnarPow/branches{/branch}","tags_url":"https://api.github.com/repos/MattRooney/GnarPow/tags","blobs_url":"https://api.github.com/repos/MattRooney/GnarPow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MattRooney/GnarPow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MattRooney/GnarPow/git/refs{/sha}","trees_url":"https://api.github.com/repos/MattRooney/GnarPow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MattRooney/GnarPow/statuses/{sha}","languages_url":"https://api.github.com/repos/MattRooney/GnarPow/languages","stargazers_url":"https://api.github.com/repos/MattRooney/GnarPow/stargazers","contributors_url":"https://api.github.com/repos/MattRooney/GnarPow/contributors","subscribers_url":"https://api.github.com/repos/MattRooney/GnarPow/subscribers","subscription_url":"https://api.github.com/repos/MattRooney/GnarPow/subscription","commits_url":"https://api.github.com/repos/MattRooney/GnarPow/commits{/sha}","git_commits_url":"https://api.github.com/repos/MattRooney/GnarPow/git/commits{/sha}","comments_url":"https://api.github.com/repos/MattRooney/GnarPow/comments{/number}","issue_comment_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/comments{/number}","contents_url":"https://api.github.com/repos/MattRooney/GnarPow/contents/{+path}","compare_url":"https://api.github.com/repos/MattRooney/GnarPow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MattRooney/GnarPow/merges","archive_url":"https://api.github.com/repos/MattRooney/GnarPow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MattRooney/GnarPow/downloads","issues_url":"https://api.github.com/repos/MattRooney/GnarPow/issues{/number}","pulls_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls{/number}","milestones_url":"https://api.github.com/repos/MattRooney/GnarPow/milestones{/number}","notifications_url":"https://api.github.com/repos/MattRooney/GnarPow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MattRooney/GnarPow/labels{/name}","releases_url":"https://api.github.com/repos/MattRooney/GnarPow/releases{/id}","created_at":"2015-11-09T17:55:11Z","updated_at":"2015-11-12T01:56:13Z","pushed_at":"2015-11-16T15:29:48Z","git_url":"git://github.com/MattRooney/GnarPow.git","ssh_url":"git@github.com:MattRooney/GnarPow.git","clone_url":"https://github.com/MattRooney/GnarPow.git","svn_url":"https://github.com/MattRooney/GnarPow","homepage":null,"size":936,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"MattRooney:master","ref":"master","sha":"b3cefa3c4dd60f615490300a486330d58a30a7ea","user":{"login":"MattRooney","id":11494414,"avatar_url":"https://avatars.githubusercontent.com/u/11494414?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRooney","html_url":"https://github.com/MattRooney","followers_url":"https://api.github.com/users/MattRooney/followers","following_url":"https://api.github.com/users/MattRooney/following{/other_user}","gists_url":"https://api.github.com/users/MattRooney/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRooney/subscriptions","organizations_url":"https://api.github.com/users/MattRooney/orgs","repos_url":"https://api.github.com/users/MattRooney/repos","events_url":"https://api.github.com/users/MattRooney/events{/privacy}","received_events_url":"https://api.github.com/users/MattRooney/received_events","type":"User","site_admin":false},"repo":{"id":45856045,"name":"GnarPow","full_name":"MattRooney/GnarPow","owner":{"login":"MattRooney","id":11494414,"avatar_url":"https://avatars.githubusercontent.com/u/11494414?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRooney","html_url":"https://github.com/MattRooney","followers_url":"https://api.github.com/users/MattRooney/followers","following_url":"https://api.github.com/users/MattRooney/following{/other_user}","gists_url":"https://api.github.com/users/MattRooney/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRooney/subscriptions","organizations_url":"https://api.github.com/users/MattRooney/orgs","repos_url":"https://api.github.com/users/MattRooney/repos","events_url":"https://api.github.com/users/MattRooney/events{/privacy}","received_events_url":"https://api.github.com/users/MattRooney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MattRooney/GnarPow","description":"","fork":false,"url":"https://api.github.com/repos/MattRooney/GnarPow","forks_url":"https://api.github.com/repos/MattRooney/GnarPow/forks","keys_url":"https://api.github.com/repos/MattRooney/GnarPow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MattRooney/GnarPow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MattRooney/GnarPow/teams","hooks_url":"https://api.github.com/repos/MattRooney/GnarPow/hooks","issue_events_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/events{/number}","events_url":"https://api.github.com/repos/MattRooney/GnarPow/events","assignees_url":"https://api.github.com/repos/MattRooney/GnarPow/assignees{/user}","branches_url":"https://api.github.com/repos/MattRooney/GnarPow/branches{/branch}","tags_url":"https://api.github.com/repos/MattRooney/GnarPow/tags","blobs_url":"https://api.github.com/repos/MattRooney/GnarPow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MattRooney/GnarPow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MattRooney/GnarPow/git/refs{/sha}","trees_url":"https://api.github.com/repos/MattRooney/GnarPow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MattRooney/GnarPow/statuses/{sha}","languages_url":"https://api.github.com/repos/MattRooney/GnarPow/languages","stargazers_url":"https://api.github.com/repos/MattRooney/GnarPow/stargazers","contributors_url":"https://api.github.com/repos/MattRooney/GnarPow/contributors","subscribers_url":"https://api.github.com/repos/MattRooney/GnarPow/subscribers","subscription_url":"https://api.github.com/repos/MattRooney/GnarPow/subscription","commits_url":"https://api.github.com/repos/MattRooney/GnarPow/commits{/sha}","git_commits_url":"https://api.github.com/repos/MattRooney/GnarPow/git/commits{/sha}","comments_url":"https://api.github.com/repos/MattRooney/GnarPow/comments{/number}","issue_comment_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/comments{/number}","contents_url":"https://api.github.com/repos/MattRooney/GnarPow/contents/{+path}","compare_url":"https://api.github.com/repos/MattRooney/GnarPow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MattRooney/GnarPow/merges","archive_url":"https://api.github.com/repos/MattRooney/GnarPow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MattRooney/GnarPow/downloads","issues_url":"https://api.github.com/repos/MattRooney/GnarPow/issues{/number}","pulls_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls{/number}","milestones_url":"https://api.github.com/repos/MattRooney/GnarPow/milestones{/number}","notifications_url":"https://api.github.com/repos/MattRooney/GnarPow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MattRooney/GnarPow/labels{/name}","releases_url":"https://api.github.com/repos/MattRooney/GnarPow/releases{/id}","created_at":"2015-11-09T17:55:11Z","updated_at":"2015-11-12T01:56:13Z","pushed_at":"2015-11-16T15:29:48Z","git_url":"git://github.com/MattRooney/GnarPow.git","ssh_url":"git@github.com:MattRooney/GnarPow.git","clone_url":"https://github.com/MattRooney/GnarPow.git","svn_url":"https://github.com/MattRooney/GnarPow","homepage":null,"size":936,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/65"},"html":{"href":"https://github.com/MattRooney/GnarPow/pull/65"},"issue":{"href":"https://api.github.com/repos/MattRooney/GnarPow/issues/65"},"comments":{"href":"https://api.github.com/repos/MattRooney/GnarPow/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/MattRooney/GnarPow/statuses/9739f9100e1ceb05faf2b05bd802f5005a49b27f"}}}}