yanhao-li / numenu

Numenu App
https://numenu-app.herokuapp.com/
1 stars 0 forks source link

Change rspec controller tests to account for DB changes #62

Open GeorgeDiNicola opened 3 years ago

GeorgeDiNicola commented 3 years ago

Need nested factories

GeorgeDiNicola commented 3 years ago

This can't be fixed until we have a login for a user. 4 rspec controller tests fail until we have a user_id upon creation of reviews.

The tests:

  1. dish_reviews_controller_spec.rb: DishReviewsController create should create a new dish review
  2. dish_reviews_controller_spec.rb: DishReviewsController create should flash a notice that the review was successfully submitted
  3. restaurant_reviews_controller_spec.rb: RestaurantReviewsController create should create a new restaurant review
    1. restaurant_reviews_controller_spec.rb: RestaurantReviewsController create should flash a notice that the review was successfully submitted