{"action":"opened","issue":{"url":"https://api.github.com/repos/pattichan/project-management/issues/13","repository_url":"https://api.github.com/repos/pattichan/project-management","labels_url":"https://api.github.com/repos/pattichan/project-management/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/pattichan/project-management/issues/13/comments","events_url":"https://api.github.com/repos/pattichan/project-management/issues/13/events","html_url":"https://github.com/pattichan/project-management/issues/13","id":140436116,"number":13,"title":"Admin can edit cook information","user":{"login":"pattichan","id":10273,"avatar_url":"https://avatars.githubusercontent.com/u/10273?v=3","gravatar_id":"","url":"https://api.github.com/users/pattichan","html_url":"https://github.com/pattichan","followers_url":"https://api.github.com/users/pattichan/followers","following_url":"https://api.github.com/users/pattichan/following{/other_user}","gists_url":"https://api.github.com/users/pattichan/gists{/gist_id}","starred_url":"https://api.github.com/users/pattichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pattichan/subscriptions","organizations_url":"https://api.github.com/users/pattichan/orgs","repos_url":"https://api.github.com/users/pattichan/repos","events_url":"https://api.github.com/users/pattichan/events{/privacy}","received_events_url":"https://api.github.com/users/pattichan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-13T01:58:58Z","updated_at":"2016-03-13T01:58:58Z","closed_at":null,"body":"Given I'm a logged in Admin,\r\nWhen I visit on the Admin Cooks page (`/admin/cooks`),\r\nThen I should see \"Edit\" and \"View\" buttons next to the \"User\" button.\r\n\r\nWhen I click \"Edit,\"\r\nThen I should be redirected to the Edit Cook page (`/admin/cooks/:id/edit`),\r\n\r\nWhen I click \"View,\"\r\nThen I should be redirected to the Cook page (`/cooks/:id`)\r\n\r\n---\r\n\r\nGiven I am on the Edit Cook page, (`/admin/cooks/:id/edit`)\r\nWhen I edit the cook,\r\nAnd I click Save,\r\nAnd there are *no errors*,\r\nThen I should be redirected to the Admin Cooks screen,\r\nAnd I should see a flash notification saying:\r\n> Great! Updated Mary Jane's cook profile and user information.\r\n\r\nWhen I edit the cook,\r\nAnd I click save,\r\nAnd there *are errors*,\r\nThen I should be redirected back to the Admin Edit Cook screen,\r\nAnd I should see the related errors."}}