{"action":"created","comment":{"url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/comments/43559570","id":43559570,"diff_hunk":"@@ -10,40 +10,68 @@\n   [x] - User should see the form displayed correctly\n   [x] - User must enter the number of times they wish to multiply the recipe\n   [x] - User should see error messages if the form is filled out incorrectly\n-  [x] - User must submit the recipe by pressing 'Get started!'\n-  [x] - User must see the add an ingredient page after submitting the recipe\n+  [x] - User must submit the recipe by pressing 'Multiply'\n+  [x] - User must see the recipe show page after submitting\n+  [x] - User must see each ingredients new amount, unit, and name on the show\n+        page\n \n } do\n   feature \"user navigates to form from root path\" do\n     scenario \"user sees for displayed correctly\" do\n       visit root_path\n \n-      expect(page).to have_content(\"Want to multiply your recipe?\")\n+      expect(page).to have_content(\"Enter your ingredients below to have them multiplied\")\n       expect(page).to have_content(\"Multiply your yield by:\")\n+      expect(page).to have_content(\"Quantity\")\n+      expect(page).to have_content(\"Unit\")\n+      expect(page).to have_content(\"Ingredient\")\n     end\n \n-    scenario \"user enters the number of times they wish to multiply by\" do\n-      visit root_path\n-      fill_in \"Multiply your yield by:\", with: 2\n-      click_button \"Get started!\"\n+    feature \"user fills out the form correctly\" do\n+      scenario \"user provides multiply by and one ingredient\" do\n+        visit root_path\n \n-      expect(page).to have_content(\"Quantity\")\n-      expect(page).to have_content(\"Unit\")\n-      expect(page).to have_content(\"Name\")\n+        fill_in \"Multiply your yield by:\", with: 2\n+        fill_in \"recipe_ingredients_attributes_0_name\", with: \"flour\"\n+        select \"cup(s)\", from: \"recipe_ingredients_attributes_0_unit\"\n+        fill_in \"recipe_ingredients_attributes_0_quantity\", with: 4\n+        click_button \"Multiply\"\n+\n+        expect(page).to have_content(\"8.0 cup(s) flour\")\n+      end\n+\n+      scenario \"user provides multiply by and two ingredients\" do\n+        visit root_path\n+\n+        fill_in \"Multiply your yield by:\", with: 2\n+        fill_in \"recipe_ingredients_attributes_0_name\", with: \"flour\"\n+        select \"cup(s)\", from: \"recipe_ingredients_attributes_0_unit\"\n+        fill_in \"recipe_ingredients_attributes_0_quantity\", with: 4\n+\n+        fill_in \"recipe_ingredients_attributes_1_name\", with: \"sugar\"\n+        select \"cup(s)\", from: \"recipe_ingredients_attributes_1_unit\"\n+        fill_in \"recipe_ingredients_attributes_1_quantity\", with: 1\n+        click_button \"Multiply\"\n+\n+        expect(page).to have_content(\"8.0 cup(s) flour\")\n+        expect(page).to have_content(\"2.0 cup(s) sugar\")\n+      end\n     end\n \n-    feature \"user does not fill out how many times they wish to multiply by\" do\n+    feature \"user does not fill out the form correctly\" do\n       scenario \"user enters the number of times they wish to multiply by\" do\n         visit root_path\n-        click_button \"Get started!\"\n+        click_button \"Multiply\"\n \n-        expect(page).to have_content(\"Multiply by can't be blank\")\n+        expect(page).to have_content(\n+          \"Multiply by can't be blank. Multiply by is not a number\"\n+          )","path":"spec/features/ingredient/user_adds_a_recipe_spec.rb","position":80,"original_position":80,"commit_id":"824057ba65906792b73b5891f1c236213c8309b7","original_commit_id":"824057ba65906792b73b5891f1c236213c8309b7","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":"Indent `)` the same as the start of the line where `(` is.","created_at":"2015-10-30T22:36:55Z","updated_at":"2015-10-30T22:36:55Z","html_url":"https://github.com/stacy-wells/recipe-multiplier/pull/9#discussion_r43559570","pull_request_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/comments/43559570"},"html":{"href":"https://github.com/stacy-wells/recipe-multiplier/pull/9#discussion_r43559570"},"pull_request":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/9","id":49330241,"html_url":"https://github.com/stacy-wells/recipe-multiplier/pull/9","diff_url":"https://github.com/stacy-wells/recipe-multiplier/pull/9.diff","patch_url":"https://github.com/stacy-wells/recipe-multiplier/pull/9.patch","issue_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues/9","number":9,"state":"open","locked":false,"title":"reorganized forms to now have nested attributes","user":{"login":"stacy-wells","id":11218638,"avatar_url":"https://avatars.githubusercontent.com/u/11218638?v=3","gravatar_id":"","url":"https://api.github.com/users/stacy-wells","html_url":"https://github.com/stacy-wells","followers_url":"https://api.github.com/users/stacy-wells/followers","following_url":"https://api.github.com/users/stacy-wells/following{/other_user}","gists_url":"https://api.github.com/users/stacy-wells/gists{/gist_id}","starred_url":"https://api.github.com/users/stacy-wells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacy-wells/subscriptions","organizations_url":"https://api.github.com/users/stacy-wells/orgs","repos_url":"https://api.github.com/users/stacy-wells/repos","events_url":"https://api.github.com/users/stacy-wells/events{/privacy}","received_events_url":"https://api.github.com/users/stacy-wells/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-30T22:36:51Z","updated_at":"2015-10-30T22:36:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fb63c69407b26559dbfb0538523a4fbeb9ae1bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/9/commits","review_comments_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/9/comments","review_comment_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues/9/comments","statuses_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/statuses/824057ba65906792b73b5891f1c236213c8309b7","head":{"label":"stacy-wells:nested-form-attempt","ref":"nested-form-attempt","sha":"824057ba65906792b73b5891f1c236213c8309b7","user":{"login":"stacy-wells","id":11218638,"avatar_url":"https://avatars.githubusercontent.com/u/11218638?v=3","gravatar_id":"","url":"https://api.github.com/users/stacy-wells","html_url":"https://github.com/stacy-wells","followers_url":"https://api.github.com/users/stacy-wells/followers","following_url":"https://api.github.com/users/stacy-wells/following{/other_user}","gists_url":"https://api.github.com/users/stacy-wells/gists{/gist_id}","starred_url":"https://api.github.com/users/stacy-wells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacy-wells/subscriptions","organizations_url":"https://api.github.com/users/stacy-wells/orgs","repos_url":"https://api.github.com/users/stacy-wells/repos","events_url":"https://api.github.com/users/stacy-wells/events{/privacy}","received_events_url":"https://api.github.com/users/stacy-wells/received_events","type":"User","site_admin":false},"repo":{"id":44558383,"name":"recipe-multiplier","full_name":"stacy-wells/recipe-multiplier","owner":{"login":"stacy-wells","id":11218638,"avatar_url":"https://avatars.githubusercontent.com/u/11218638?v=3","gravatar_id":"","url":"https://api.github.com/users/stacy-wells","html_url":"https://github.com/stacy-wells","followers_url":"https://api.github.com/users/stacy-wells/followers","following_url":"https://api.github.com/users/stacy-wells/following{/other_user}","gists_url":"https://api.github.com/users/stacy-wells/gists{/gist_id}","starred_url":"https://api.github.com/users/stacy-wells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacy-wells/subscriptions","organizations_url":"https://api.github.com/users/stacy-wells/orgs","repos_url":"https://api.github.com/users/stacy-wells/repos","events_url":"https://api.github.com/users/stacy-wells/events{/privacy}","received_events_url":"https://api.github.com/users/stacy-wells/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stacy-wells/recipe-multiplier","description":"","fork":false,"url":"https://api.github.com/repos/stacy-wells/recipe-multiplier","forks_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/forks","keys_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/teams","hooks_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/hooks","issue_events_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues/events{/number}","events_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/events","assignees_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/assignees{/user}","branches_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/branches{/branch}","tags_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/tags","blobs_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/refs{/sha}","trees_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/statuses/{sha}","languages_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/languages","stargazers_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/stargazers","contributors_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/contributors","subscribers_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/subscribers","subscription_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/subscription","commits_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/commits{/sha}","git_commits_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/commits{/sha}","comments_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/comments{/number}","issue_comment_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues/comments{/number}","contents_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/contents/{+path}","compare_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/merges","archive_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/downloads","issues_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues{/number}","pulls_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls{/number}","milestones_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/milestones{/number}","notifications_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/labels{/name}","releases_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/releases{/id}","created_at":"2015-10-19T19:26:34Z","updated_at":"2015-10-27T23:36:01Z","pushed_at":"2015-10-30T22:36:52Z","git_url":"git://github.com/stacy-wells/recipe-multiplier.git","ssh_url":"git@github.com:stacy-wells/recipe-multiplier.git","clone_url":"https://github.com/stacy-wells/recipe-multiplier.git","svn_url":"https://github.com/stacy-wells/recipe-multiplier","homepage":null,"size":192,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"stacy-wells:master","ref":"master","sha":"dbc60419a49afc31745cb60f4b4cdbd7118dc119","user":{"login":"stacy-wells","id":11218638,"avatar_url":"https://avatars.githubusercontent.com/u/11218638?v=3","gravatar_id":"","url":"https://api.github.com/users/stacy-wells","html_url":"https://github.com/stacy-wells","followers_url":"https://api.github.com/users/stacy-wells/followers","following_url":"https://api.github.com/users/stacy-wells/following{/other_user}","gists_url":"https://api.github.com/users/stacy-wells/gists{/gist_id}","starred_url":"https://api.github.com/users/stacy-wells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacy-wells/subscriptions","organizations_url":"https://api.github.com/users/stacy-wells/orgs","repos_url":"https://api.github.com/users/stacy-wells/repos","events_url":"https://api.github.com/users/stacy-wells/events{/privacy}","received_events_url":"https://api.github.com/users/stacy-wells/received_events","type":"User","site_admin":false},"repo":{"id":44558383,"name":"recipe-multiplier","full_name":"stacy-wells/recipe-multiplier","owner":{"login":"stacy-wells","id":11218638,"avatar_url":"https://avatars.githubusercontent.com/u/11218638?v=3","gravatar_id":"","url":"https://api.github.com/users/stacy-wells","html_url":"https://github.com/stacy-wells","followers_url":"https://api.github.com/users/stacy-wells/followers","following_url":"https://api.github.com/users/stacy-wells/following{/other_user}","gists_url":"https://api.github.com/users/stacy-wells/gists{/gist_id}","starred_url":"https://api.github.com/users/stacy-wells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacy-wells/subscriptions","organizations_url":"https://api.github.com/users/stacy-wells/orgs","repos_url":"https://api.github.com/users/stacy-wells/repos","events_url":"https://api.github.com/users/stacy-wells/events{/privacy}","received_events_url":"https://api.github.com/users/stacy-wells/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stacy-wells/recipe-multiplier","description":"","fork":false,"url":"https://api.github.com/repos/stacy-wells/recipe-multiplier","forks_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/forks","keys_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/teams","hooks_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/hooks","issue_events_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues/events{/number}","events_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/events","assignees_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/assignees{/user}","branches_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/branches{/branch}","tags_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/tags","blobs_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/refs{/sha}","trees_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/statuses/{sha}","languages_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/languages","stargazers_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/stargazers","contributors_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/contributors","subscribers_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/subscribers","subscription_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/subscription","commits_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/commits{/sha}","git_commits_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/git/commits{/sha}","comments_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/comments{/number}","issue_comment_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues/comments{/number}","contents_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/contents/{+path}","compare_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/merges","archive_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/downloads","issues_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues{/number}","pulls_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls{/number}","milestones_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/milestones{/number}","notifications_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/labels{/name}","releases_url":"https://api.github.com/repos/stacy-wells/recipe-multiplier/releases{/id}","created_at":"2015-10-19T19:26:34Z","updated_at":"2015-10-27T23:36:01Z","pushed_at":"2015-10-30T22:36:52Z","git_url":"git://github.com/stacy-wells/recipe-multiplier.git","ssh_url":"git@github.com:stacy-wells/recipe-multiplier.git","clone_url":"https://github.com/stacy-wells/recipe-multiplier.git","svn_url":"https://github.com/stacy-wells/recipe-multiplier","homepage":null,"size":192,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/9"},"html":{"href":"https://github.com/stacy-wells/recipe-multiplier/pull/9"},"issue":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues/9"},"comments":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/stacy-wells/recipe-multiplier/statuses/824057ba65906792b73b5891f1c236213c8309b7"}}}}