14 lines
393 B
Ruby
14 lines
393 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe SeatTable, type: :model do
|
|
# Association test
|
|
# ensure an item record belongs to a single todo record
|
|
it { should belong_to(:zone) }
|
|
# Validation test
|
|
# ensure column name is present before saving
|
|
it { should validate_presence_of(:name) }
|
|
it { should validate_presence_of(:order_by) }
|
|
it { should validate_presence_of(:created_by) }
|
|
|
|
end
|