menu and menu_category
This commit is contained in:
@@ -4,6 +4,8 @@ RSpec.describe Zone, type: :model do
|
||||
# Association test
|
||||
# ensure Todo model has a 1:m relationship with the Item model
|
||||
it { should have_many(:seat_tables).dependent(:destroy) }
|
||||
it { should have_many(:rooms).dependent(:destroy) }
|
||||
|
||||
# Validation tests
|
||||
# ensure columns title and created_by are present before saving
|
||||
it { should validate_presence_of(:name) }
|
||||
|
||||
Reference in New Issue
Block a user