Testing Dev Branch
Added cuisine and phone number to table
User can now create restaurant with name only.
Added facility to edit and update restaurants
Removed cuisine. Added address. Remade DB. Added delete function. All green and passing.
Add unit tests and validations
Added review functionality to system
Added confirmation that reviews will be deleted with restaurant is destroyed
Added RSpec Helper Gem
Updated Model Spec for 1 test
Added validation for reviews
Added constant for valid ratings
Added validation for review only being valid if there is a restaurant
Added test to reviews to make sure everything works
Started testing for average reviews with feature test. Tested for no reviews and 1 review rating being returned and added inject method for summation
Added test for multiple reviews and passed with division of reviews count.
Test for returning a float average by adding .to_f to count
Simplified average_rating method on line 13
All feature tests for average rating passed and displaying
Review features rating updated to now include stars