Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Story 20, Change Item's Active Status #7

Open
8 tasks
megstang opened this issue Sep 30, 2019 · 0 comments
Open
8 tasks

User Story 20, Change Item's Active Status #7

megstang opened this issue Sep 30, 2019 · 0 comments

Comments

@megstang
Copy link
Collaborator

As a visitor
When I visit an Item Show page
Then I see a link to change the Item's active status
Active items should have the link "deactivate"
Inactive items should have the link "activate"
When I click the link
Then a 'PATCH' request is sent to '/items/:id/activate' or 'items/:id/deactivate' (depending on the link)
and I am redirected to the Item Show page where I see the active status has been toggled

DO THESE STORIES FIRST:

  • User Story 9, Item Show

Checklist:

  • base tests are written
  • base code is written to pass tests
  • edge case ("sad path") tests written (if required)
  • edge case code written (if required)
  • code is tested in development
  • code is reviewed
  • branch is merged
  • all tests still pass

child of turingschool-examples#108

child of turingschool-examples#130

depends on turingschool-examples#119

@megstang megstang added the items label Sep 30, 2019
@megstang megstang added this to Extensions in Mini Shop 1908 Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Mini Shop 1908
Extensions
Development

No branches or pull requests

1 participant