- Ruby version: 3.1.4
- Configuration: Development: SQLite3, Production: PostgreSQL (It downloads Postgres as a dependency, but locally uses SQLite3)
- Database creation: set up the database by following the instructions here: https://devcenter.heroku.com/articles/getting-started-with-rails6#create-a-procfile
- Database initialization:
heroku addons:create heroku-postgresql:mini
, thenheroku run rake db:migrate
- It should describe steps required for building and running locally
- It should describe how to run tests locally
-
It should allow me to see a list of available toppings
Test Steps:
- Navigate to Toppings page by clicking Toppings link
- There should be a list of toppings
- If the list is empty, create a topping by clicking the
New topping
link - Fill out form and select
Create Topping
- Click
Back to toppings
link
Expected Results:
- User should see toppings listed
-
It should allow me to add a new topping
Test Steps:
- Create a topping by clicking the
New topping
link - Fill out form and select
Create Topping
- Click
Back to toppings
link
Expected Results:
- User should see new topping created
- User should see green alert at top of page
- Create a topping by clicking the
-
It should allow me to delete an existing topping
Test Steps:
- Navigate to the
Show this topping
link for the topping you want to delete - Click
Destroy This Topping
Expected Results:
- User should be redirected to main toppings page
- User should see a green alert saying topping was deleted
- User should not see the deleted topping in list
- Navigate to the
-
It should allow me to update an existing topping
Test Steps:
- Navigate to
Show This Topping
page - Click
Edit this topping
link - Make changes to topping
- Click
Update Topping
Expected Results:
- User should see green alert
- User should see changes made to topping
- Navigate to
-
It should not allow me to enter duplicate toppings
Test Steps:
- Do test steps for making a new topping
- Repeat process and name the second topping the same as the previous
- Click
Create Topping
Expected Results:
- User should see a red alert at top of screen saying
1 error...
and preventing creation of duplicate topping
-
It should allow me to see a list of existing pizzas and their toppings
Test Steps:
- Go to Pizzas page
- If there aren't any pizzas, create one (Follow
Create A New Pizza
test steps - Click the
Back to pizzas
link
Expected Results:
- User should see list of pizzas
-
It should allow me to create a new pizza and add toppings to it
Test Steps:
- Follow instructions to create a new topping
- Navigate to Pizza page
- Click the
New Pizza
link - Fill out form and select
Create Pizza
, including toppings - Click
Back to pizzas
link
Expected Results:
- User should see green alert
- User should see pizza listed
-
It should allow me to delete an existing pizza
Test Steps:
- After creating a pizza, on pizza page, select
Show pizza
- Select
Destroy this pizza
button
Expected Results:
- User should be redirected to main pizza page without the destroyed pizza
- User should see green alert
- After creating a pizza, on pizza page, select
-
It should allow me to update an existing pizza
Test Steps:
- On pizza page, select
Show this pizza
link for any pizza - Select
Edit this pizza
link - Make changes to pizza
- Select
Update pizza
button
Expected Results:
- User should see pizza with updates made
- User should see green alert
- On pizza page, select
-
It should allow me to update toppings on an existing pizza
Test Steps:
- Follow instructions to update a pizza
- Select or deselect toppings listed on the pizza form
- Click the
Update Pizza
button
Expected Results:
- User should see updated toppings on pizza
- User should see green alert
-
It should not allow me to enter duplicate pizzas
Test Steps:
- Follow instructions to create a new pizza, twice
- On the second pizza, name it the same as the first
- Select
Create Pizza
button
Expected Results:
- User should see red alert