{"action":"created","comment":{"url":"https://api.github.com/repos/Automatic365/little-shop/pulls/comments/73427248","id":73427248,"diff_hunk":"@@ -0,0 +1,26 @@\n+require 'rails_helper'\n+\n+RSpec.feature \"admin can create an item\" do\n+  scenario \"logged in admin creates an item\" do\n+\n+    admin = create(:user, role: 1)\n+\n+    allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(admin)\n+\n+    # As an admin\n+    # When I visit the new item path\n+    visit new_item_path\n+    # And I fill in the fields\n+    fill_in \"Title\", with: \"Robot Head\"\n+    fill_in \"Description\", with: \"Big Robot Head\"\n+    fill_in \"Price\", with: 10000\n+    fill_in \"Category\", with: \"Head\"\n+    # And click 'Create Item'\n+    click_on \"Create Item\"\n+    # I should see the item on the item show page\n+    expect(page).to have_content(\"Robot Head\")\n+    expect(page).to have_content(\"Big Robot Head\")","path":"spec/features/admin_can_create_items_spec.rb","position":22,"original_position":22,"commit_id":"1da6cce505848f63d50a98e56e931e309db26aab","original_commit_id":"1da6cce505848f63d50a98e56e931e309db26aab","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-08-03T21:43:46Z","updated_at":"2016-08-03T21:43:46Z","html_url":"https://github.com/Automatic365/little-shop/pull/52#discussion_r73427248","pull_request_url":"https://api.github.com/repos/Automatic365/little-shop/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/Automatic365/little-shop/pulls/comments/73427248"},"html":{"href":"https://github.com/Automatic365/little-shop/pull/52#discussion_r73427248"},"pull_request":{"href":"https://api.github.com/repos/Automatic365/little-shop/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/Automatic365/little-shop/pulls/52","id":79984569,"html_url":"https://github.com/Automatic365/little-shop/pull/52","diff_url":"https://github.com/Automatic365/little-shop/pull/52.diff","patch_url":"https://github.com/Automatic365/little-shop/pull/52.patch","issue_url":"https://api.github.com/repos/Automatic365/little-shop/issues/52","number":52,"state":"open","locked":false,"title":"closes #49 closes #50 closes #51","user":{"login":"Caleb9193","id":17343956,"avatar_url":"https://avatars.githubusercontent.com/u/17343956?v=3","gravatar_id":"","url":"https://api.github.com/users/Caleb9193","html_url":"https://github.com/Caleb9193","followers_url":"https://api.github.com/users/Caleb9193/followers","following_url":"https://api.github.com/users/Caleb9193/following{/other_user}","gists_url":"https://api.github.com/users/Caleb9193/gists{/gist_id}","starred_url":"https://api.github.com/users/Caleb9193/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Caleb9193/subscriptions","organizations_url":"https://api.github.com/users/Caleb9193/orgs","repos_url":"https://api.github.com/users/Caleb9193/repos","events_url":"https://api.github.com/users/Caleb9193/events{/privacy}","received_events_url":"https://api.github.com/users/Caleb9193/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-08-03T21:43:34Z","updated_at":"2016-08-03T21:43:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9a6dc1e95dfe0336d3e7d378c2f98dca0a1b5c8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Automatic365/little-shop/pulls/52/commits","review_comments_url":"https://api.github.com/repos/Automatic365/little-shop/pulls/52/comments","review_comment_url":"https://api.github.com/repos/Automatic365/little-shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automatic365/little-shop/issues/52/comments","statuses_url":"https://api.github.com/repos/Automatic365/little-shop/statuses/1da6cce505848f63d50a98e56e931e309db26aab","head":{"label":"Automatic365:admin_create_and_edit_caleb","ref":"admin_create_and_edit_caleb","sha":"1da6cce505848f63d50a98e56e931e309db26aab","user":{"login":"Automatic365","id":10931097,"avatar_url":"https://avatars.githubusercontent.com/u/10931097?v=3","gravatar_id":"","url":"https://api.github.com/users/Automatic365","html_url":"https://github.com/Automatic365","followers_url":"https://api.github.com/users/Automatic365/followers","following_url":"https://api.github.com/users/Automatic365/following{/other_user}","gists_url":"https://api.github.com/users/Automatic365/gists{/gist_id}","starred_url":"https://api.github.com/users/Automatic365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automatic365/subscriptions","organizations_url":"https://api.github.com/users/Automatic365/orgs","repos_url":"https://api.github.com/users/Automatic365/repos","events_url":"https://api.github.com/users/Automatic365/events{/privacy}","received_events_url":"https://api.github.com/users/Automatic365/received_events","type":"User","site_admin":false},"repo":{"id":64170661,"name":"little-shop","full_name":"Automatic365/little-shop","owner":{"login":"Automatic365","id":10931097,"avatar_url":"https://avatars.githubusercontent.com/u/10931097?v=3","gravatar_id":"","url":"https://api.github.com/users/Automatic365","html_url":"https://github.com/Automatic365","followers_url":"https://api.github.com/users/Automatic365/followers","following_url":"https://api.github.com/users/Automatic365/following{/other_user}","gists_url":"https://api.github.com/users/Automatic365/gists{/gist_id}","starred_url":"https://api.github.com/users/Automatic365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automatic365/subscriptions","organizations_url":"https://api.github.com/users/Automatic365/orgs","repos_url":"https://api.github.com/users/Automatic365/repos","events_url":"https://api.github.com/users/Automatic365/events{/privacy}","received_events_url":"https://api.github.com/users/Automatic365/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Automatic365/little-shop","description":null,"fork":false,"url":"https://api.github.com/repos/Automatic365/little-shop","forks_url":"https://api.github.com/repos/Automatic365/little-shop/forks","keys_url":"https://api.github.com/repos/Automatic365/little-shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automatic365/little-shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automatic365/little-shop/teams","hooks_url":"https://api.github.com/repos/Automatic365/little-shop/hooks","issue_events_url":"https://api.github.com/repos/Automatic365/little-shop/issues/events{/number}","events_url":"https://api.github.com/repos/Automatic365/little-shop/events","assignees_url":"https://api.github.com/repos/Automatic365/little-shop/assignees{/user}","branches_url":"https://api.github.com/repos/Automatic365/little-shop/branches{/branch}","tags_url":"https://api.github.com/repos/Automatic365/little-shop/tags","blobs_url":"https://api.github.com/repos/Automatic365/little-shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automatic365/little-shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automatic365/little-shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automatic365/little-shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automatic365/little-shop/statuses/{sha}","languages_url":"https://api.github.com/repos/Automatic365/little-shop/languages","stargazers_url":"https://api.github.com/repos/Automatic365/little-shop/stargazers","contributors_url":"https://api.github.com/repos/Automatic365/little-shop/contributors","subscribers_url":"https://api.github.com/repos/Automatic365/little-shop/subscribers","subscription_url":"https://api.github.com/repos/Automatic365/little-shop/subscription","commits_url":"https://api.github.com/repos/Automatic365/little-shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automatic365/little-shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automatic365/little-shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automatic365/little-shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automatic365/little-shop/contents/{+path}","compare_url":"https://api.github.com/repos/Automatic365/little-shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automatic365/little-shop/merges","archive_url":"https://api.github.com/repos/Automatic365/little-shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automatic365/little-shop/downloads","issues_url":"https://api.github.com/repos/Automatic365/little-shop/issues{/number}","pulls_url":"https://api.github.com/repos/Automatic365/little-shop/pulls{/number}","milestones_url":"https://api.github.com/repos/Automatic365/little-shop/milestones{/number}","notifications_url":"https://api.github.com/repos/Automatic365/little-shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automatic365/little-shop/labels{/name}","releases_url":"https://api.github.com/repos/Automatic365/little-shop/releases{/id}","deployments_url":"https://api.github.com/repos/Automatic365/little-shop/deployments","created_at":"2016-07-25T21:58:17Z","updated_at":"2016-07-29T15:42:47Z","pushed_at":"2016-08-03T21:43:34Z","git_url":"git://github.com/Automatic365/little-shop.git","ssh_url":"git@github.com:Automatic365/little-shop.git","clone_url":"https://github.com/Automatic365/little-shop.git","svn_url":"https://github.com/Automatic365/little-shop","homepage":null,"size":1389,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"Automatic365:master","ref":"master","sha":"360cf7c50e8e755b1772f6e4f2d8cc4fb41896f6","user":{"login":"Automatic365","id":10931097,"avatar_url":"https://avatars.githubusercontent.com/u/10931097?v=3","gravatar_id":"","url":"https://api.github.com/users/Automatic365","html_url":"https://github.com/Automatic365","followers_url":"https://api.github.com/users/Automatic365/followers","following_url":"https://api.github.com/users/Automatic365/following{/other_user}","gists_url":"https://api.github.com/users/Automatic365/gists{/gist_id}","starred_url":"https://api.github.com/users/Automatic365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automatic365/subscriptions","organizations_url":"https://api.github.com/users/Automatic365/orgs","repos_url":"https://api.github.com/users/Automatic365/repos","events_url":"https://api.github.com/users/Automatic365/events{/privacy}","received_events_url":"https://api.github.com/users/Automatic365/received_events","type":"User","site_admin":false},"repo":{"id":64170661,"name":"little-shop","full_name":"Automatic365/little-shop","owner":{"login":"Automatic365","id":10931097,"avatar_url":"https://avatars.githubusercontent.com/u/10931097?v=3","gravatar_id":"","url":"https://api.github.com/users/Automatic365","html_url":"https://github.com/Automatic365","followers_url":"https://api.github.com/users/Automatic365/followers","following_url":"https://api.github.com/users/Automatic365/following{/other_user}","gists_url":"https://api.github.com/users/Automatic365/gists{/gist_id}","starred_url":"https://api.github.com/users/Automatic365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automatic365/subscriptions","organizations_url":"https://api.github.com/users/Automatic365/orgs","repos_url":"https://api.github.com/users/Automatic365/repos","events_url":"https://api.github.com/users/Automatic365/events{/privacy}","received_events_url":"https://api.github.com/users/Automatic365/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Automatic365/little-shop","description":null,"fork":false,"url":"https://api.github.com/repos/Automatic365/little-shop","forks_url":"https://api.github.com/repos/Automatic365/little-shop/forks","keys_url":"https://api.github.com/repos/Automatic365/little-shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automatic365/little-shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automatic365/little-shop/teams","hooks_url":"https://api.github.com/repos/Automatic365/little-shop/hooks","issue_events_url":"https://api.github.com/repos/Automatic365/little-shop/issues/events{/number}","events_url":"https://api.github.com/repos/Automatic365/little-shop/events","assignees_url":"https://api.github.com/repos/Automatic365/little-shop/assignees{/user}","branches_url":"https://api.github.com/repos/Automatic365/little-shop/branches{/branch}","tags_url":"https://api.github.com/repos/Automatic365/little-shop/tags","blobs_url":"https://api.github.com/repos/Automatic365/little-shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automatic365/little-shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automatic365/little-shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automatic365/little-shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automatic365/little-shop/statuses/{sha}","languages_url":"https://api.github.com/repos/Automatic365/little-shop/languages","stargazers_url":"https://api.github.com/repos/Automatic365/little-shop/stargazers","contributors_url":"https://api.github.com/repos/Automatic365/little-shop/contributors","subscribers_url":"https://api.github.com/repos/Automatic365/little-shop/subscribers","subscription_url":"https://api.github.com/repos/Automatic365/little-shop/subscription","commits_url":"https://api.github.com/repos/Automatic365/little-shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automatic365/little-shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automatic365/little-shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automatic365/little-shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automatic365/little-shop/contents/{+path}","compare_url":"https://api.github.com/repos/Automatic365/little-shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automatic365/little-shop/merges","archive_url":"https://api.github.com/repos/Automatic365/little-shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automatic365/little-shop/downloads","issues_url":"https://api.github.com/repos/Automatic365/little-shop/issues{/number}","pulls_url":"https://api.github.com/repos/Automatic365/little-shop/pulls{/number}","milestones_url":"https://api.github.com/repos/Automatic365/little-shop/milestones{/number}","notifications_url":"https://api.github.com/repos/Automatic365/little-shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automatic365/little-shop/labels{/name}","releases_url":"https://api.github.com/repos/Automatic365/little-shop/releases{/id}","deployments_url":"https://api.github.com/repos/Automatic365/little-shop/deployments","created_at":"2016-07-25T21:58:17Z","updated_at":"2016-07-29T15:42:47Z","pushed_at":"2016-08-03T21:43:34Z","git_url":"git://github.com/Automatic365/little-shop.git","ssh_url":"git@github.com:Automatic365/little-shop.git","clone_url":"https://github.com/Automatic365/little-shop.git","svn_url":"https://github.com/Automatic365/little-shop","homepage":null,"size":1389,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automatic365/little-shop/pulls/52"},"html":{"href":"https://github.com/Automatic365/little-shop/pull/52"},"issue":{"href":"https://api.github.com/repos/Automatic365/little-shop/issues/52"},"comments":{"href":"https://api.github.com/repos/Automatic365/little-shop/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/Automatic365/little-shop/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/Automatic365/little-shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automatic365/little-shop/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/Automatic365/little-shop/statuses/1da6cce505848f63d50a98e56e931e309db26aab"}}}}
{"actor":{"display_login":"houndci-bot"}}