{"action":"created","comment":{"url":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/comments/186267197","pull_request_review_id":117819762,"id":186267197,"diff_hunk":"@@ -0,0 +1,65 @@\n+RSpec.describe 'A User' do\n+  describe 'visits /invoices' do\n+    it 'should display an index labled Index' do\n+      visit '/invoices'\n+      expect(page).to have_content(\"Invoices\")\n+    end\n+\n+    it 'display an index of all invoices' do\n+      Invoice.create(id: 1, merchant_id: 12335938, customer_id: 1, status: 'pending')\n+      Invoice.create(id: 3, merchant_id: 14839458, customer_id: 2, status: 'confirmed')\n+      visit '/invoices'\n+      expect(page).to have_content('pending')\n+      expect(page).to have_content('confirmed')\n+      expect(page).to have_content('14839458')\n+    end\n+  end\n+\n+  describe 'visits a specific invoice' do\n+    it 'should display a certain invoice if that invoice exists' do\n+      Invoice.create(id: 1, merchant_id: 12335938, customer_id: 1, status: 'pending')\n+\n+      visit '/invoices/1'\n+\n+      expect(page).to have_content('Status: pending')\n+      expect(page).to have_content('Merchant Id: 12335938')\n+      expect(page).to have_content('Customer Id: 1')\n+\n+    end\n+\n+    it 'should display no such invoice if invoice doesnt exist' do\n+      visit '/invoices/1'\n+      expect(page.status_code).to eq(404)\n+    end\n+  end\n+\n+  describe 'tries to edit an invoice status' do\n+    it 'should change valid pararmeters' do\n+      Invoice.create(id: 1, merchant_id: 12335938, customer_id: 1, status: 'pending')\n+\n+      visit '/invoices/1/edit'\n+      fill_in 'invoice[status]', with:'Confirmed'\n+      click_button 'submit'\n+      expect(current_path).to eq('/invoices/1')\n+      expect(page).to_not have_content('Status: pending')\n+      expect(page).to have_content('Status: Confirmed')\n+    end\n+  end\n+\n+  describe 'tries to delete an invoice' do\n+    it 'should remove the invoice from the table of invoices' do\n+      id = 1\n+      merchant_id = 12335938\n+      customer_id = 1\n+      status = 'pending'\n+\n+      invoice = Invoice.create(id: id, merchant_id: merchant_id, customer_id: customer_id, status: status)\n+      visit '/invoices'\n+      click_button \"delete_invoice_#{id}\"\n+\n+      expect(Invoice.all).to_not include(id:id)","path":"spec/features/invoices/user_sees_invoices_spec.rb","position":60,"original_position":60,"commit_id":"1118a09acb23d8679a81d36c62bf8844e717849c","original_commit_id":"1118a09acb23d8679a81d36c62bf8844e717849c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Layout/SpaceAfterColon: Space missing after colon.","created_at":"2018-05-05T17:06:07Z","updated_at":"2018-05-05T17:06:08Z","html_url":"https://github.com/zdcthomas/little-shop-redux/pull/10#discussion_r186267197","pull_request_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/comments/186267197"},"html":{"href":"https://github.com/zdcthomas/little-shop-redux/pull/10#discussion_r186267197"},"pull_request":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/10","id":186166025,"html_url":"https://github.com/zdcthomas/little-shop-redux/pull/10","diff_url":"https://github.com/zdcthomas/little-shop-redux/pull/10.diff","patch_url":"https://github.com/zdcthomas/little-shop-redux/pull/10.patch","issue_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues/10","number":10,"state":"open","locked":false,"title":"Iteration6","user":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-05T17:05:49Z","updated_at":"2018-05-05T17:06:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":919807936,"url":"https://api.github.com/repos/zdcthomas/little-shop-redux/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/10/commits","review_comments_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/10/comments","review_comment_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues/10/comments","statuses_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/statuses/1118a09acb23d8679a81d36c62bf8844e717849c","head":{"label":"zdcthomas:iteration6","ref":"iteration6","sha":"1118a09acb23d8679a81d36c62bf8844e717849c","user":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"repo":{"id":131772803,"name":"little-shop-redux","full_name":"zdcthomas/little-shop-redux","owner":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zdcthomas/little-shop-redux","description":"Little Shop starter kit","fork":true,"url":"https://api.github.com/repos/zdcthomas/little-shop-redux","forks_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/forks","keys_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/teams","hooks_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/hooks","issue_events_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues/events{/number}","events_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/events","assignees_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/assignees{/user}","branches_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/branches{/branch}","tags_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/tags","blobs_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/statuses/{sha}","languages_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/languages","stargazers_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/stargazers","contributors_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/contributors","subscribers_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/subscribers","subscription_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/subscription","commits_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/contents/{+path}","compare_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/merges","archive_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/downloads","issues_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues{/number}","pulls_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls{/number}","milestones_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/milestones{/number}","notifications_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/labels{/name}","releases_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/releases{/id}","deployments_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/deployments","created_at":"2018-05-01T23:16:20Z","updated_at":"2018-05-03T21:37:00Z","pushed_at":"2018-05-05T17:05:51Z","git_url":"git://github.com/zdcthomas/little-shop-redux.git","ssh_url":"git@github.com:zdcthomas/little-shop-redux.git","clone_url":"https://github.com/zdcthomas/little-shop-redux.git","svn_url":"https://github.com/zdcthomas/little-shop-redux","homepage":null,"size":678,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"zdcthomas:master","ref":"master","sha":"e66a5ff1ff82065337ad9c99153a45807e74f140","user":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"repo":{"id":131772803,"name":"little-shop-redux","full_name":"zdcthomas/little-shop-redux","owner":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zdcthomas/little-shop-redux","description":"Little Shop starter kit","fork":true,"url":"https://api.github.com/repos/zdcthomas/little-shop-redux","forks_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/forks","keys_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/teams","hooks_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/hooks","issue_events_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues/events{/number}","events_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/events","assignees_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/assignees{/user}","branches_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/branches{/branch}","tags_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/tags","blobs_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/statuses/{sha}","languages_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/languages","stargazers_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/stargazers","contributors_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/contributors","subscribers_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/subscribers","subscription_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/subscription","commits_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/contents/{+path}","compare_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/merges","archive_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/downloads","issues_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues{/number}","pulls_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls{/number}","milestones_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/milestones{/number}","notifications_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/labels{/name}","releases_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/releases{/id}","deployments_url":"https://api.github.com/repos/zdcthomas/little-shop-redux/deployments","created_at":"2018-05-01T23:16:20Z","updated_at":"2018-05-03T21:37:00Z","pushed_at":"2018-05-05T17:05:51Z","git_url":"git://github.com/zdcthomas/little-shop-redux.git","ssh_url":"git@github.com:zdcthomas/little-shop-redux.git","clone_url":"https://github.com/zdcthomas/little-shop-redux.git","svn_url":"https://github.com/zdcthomas/little-shop-redux","homepage":null,"size":678,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/10"},"html":{"href":"https://github.com/zdcthomas/little-shop-redux/pull/10"},"issue":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues/10"},"comments":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/zdcthomas/little-shop-redux/statuses/1118a09acb23d8679a81d36c62bf8844e717849c"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}