{"action":"created","comment":{"url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/comments/26699612","id":26699612,"diff_hunk":"@@ -0,0 +1,78 @@\n+require \"rails_helper\"\n+describe \"admin creating mode\" do\n+  context \"for breeds\" do\n+    it \"allows admin to create a new breed\" do\n+      # 059\n+      # As an Admin\n+      # When I visit \"/admin/breeds/:id/edit\"\n+      # And I fill in the name field\n+      # And I fill in the description field\n+      # And I click the \"save\" button\n+      # Then I am redirected to that breed\"s page\n+      # And I see the edited breed with it\"s new name and description\n+      create(:user, role: 1)\n+      visit new_admin_breed_path\n+\n+      fill_in \"enter name\", with: \"TEst_new_name\"\n+      fill_in \"enter description\", with: \"test_new_description\"\n+      fill_in \"enter image_path\", with: \"test_new_image_path\"\n+      fill_in \"enter retired\", with: true\n+      click_link_or_button(\"Create\")\n+\n+      within(\"#flash-newcomplete\") do\n+        expect(page).to have_content(\"Test new name created!\")\n+      end\n+      expect(current_path).to eq(\"/admin/breeds/test_new_name\")\n+    end\n+\n+    it \"doesn't allow the admin to not fill in any fields\" do\n+      create(:user, role: 1)\n+      visit new_admin_breed_path\n+\n+      fill_in \"enter name\", with: \"TEst_fail_name\"\n+      click_link_or_button(\"Create\")\n+      within(\"#flash-newfail\") do\n+        expect(page).to have_content(\"Please fill every field in with a valid entry\")","path":"spec/features/admin_creating_spec.rb","position":35,"original_position":35,"commit_id":"71bc83cd726f3801e862d7301215a409ac31bb3d","original_commit_id":"71bc83cd726f3801e862d7301215a409ac31bb3d","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":"Line is too long. [85/80]","created_at":"2015-03-18T19:44:02Z","updated_at":"2015-03-18T19:44:02Z","html_url":"https://github.com/AllPurposeName/dinner_dash/pull/155#discussion_r26699612","pull_request_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/comments/26699612"},"html":{"href":"https://github.com/AllPurposeName/dinner_dash/pull/155#discussion_r26699612"},"pull_request":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/155","id":31464724,"html_url":"https://github.com/AllPurposeName/dinner_dash/pull/155","diff_url":"https://github.com/AllPurposeName/dinner_dash/pull/155.diff","patch_url":"https://github.com/AllPurposeName/dinner_dash/pull/155.patch","issue_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/155","number":155,"state":"open","locked":false,"title":"Admin creating breeds and cats","user":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-18T19:43:53Z","updated_at":"2015-03-18T19:44:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78a67b3c31c6919fc57cc00b76d2065c460dd2ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/155/commits","review_comments_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/155/comments","review_comment_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/155/comments","statuses_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/statuses/71bc83cd726f3801e862d7301215a409ac31bb3d","head":{"label":"AllPurposeName:admin-creating-breeds-and-cats","ref":"admin-creating-breeds-and-cats","sha":"71bc83cd726f3801e862d7301215a409ac31bb3d","user":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"repo":{"id":31905240,"name":"dinner_dash","full_name":"AllPurposeName/dinner_dash","owner":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AllPurposeName/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/AllPurposeName/dinner_dash","forks_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/forks","keys_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/teams","hooks_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/events","assignees_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/tags","blobs_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/subscription","commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/merges","archive_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/downloads","issues_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/releases{/id}","created_at":"2015-03-09T15:09:06Z","updated_at":"2015-03-18T00:40:53Z","pushed_at":"2015-03-18T19:43:45Z","git_url":"git://github.com/AllPurposeName/dinner_dash.git","ssh_url":"git@github.com:AllPurposeName/dinner_dash.git","clone_url":"https://github.com/AllPurposeName/dinner_dash.git","svn_url":"https://github.com/AllPurposeName/dinner_dash","homepage":null,"size":2712,"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":81,"forks":0,"open_issues":81,"watchers":0,"default_branch":"master"}},"base":{"label":"AllPurposeName:master","ref":"master","sha":"69d9df257044f3756a9cc85403000dfdae2b7f18","user":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"repo":{"id":31905240,"name":"dinner_dash","full_name":"AllPurposeName/dinner_dash","owner":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AllPurposeName/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/AllPurposeName/dinner_dash","forks_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/forks","keys_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/teams","hooks_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/events","assignees_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/tags","blobs_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/subscription","commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/merges","archive_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/downloads","issues_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/releases{/id}","created_at":"2015-03-09T15:09:06Z","updated_at":"2015-03-18T00:40:53Z","pushed_at":"2015-03-18T19:43:45Z","git_url":"git://github.com/AllPurposeName/dinner_dash.git","ssh_url":"git@github.com:AllPurposeName/dinner_dash.git","clone_url":"https://github.com/AllPurposeName/dinner_dash.git","svn_url":"https://github.com/AllPurposeName/dinner_dash","homepage":null,"size":2712,"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":81,"forks":0,"open_issues":81,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/155"},"html":{"href":"https://github.com/AllPurposeName/dinner_dash/pull/155"},"issue":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/155"},"comments":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/statuses/71bc83cd726f3801e862d7301215a409ac31bb3d"}}}}