wedding-planner/spec/models/tables_arrangement_spec.rb
Manuel Bustillo 066fdea504
Some checks failed
Add copyright notice / copyright_notice (pull_request) Successful in 3m52s
Run unit tests / unit_tests (pull_request) Successful in 7m40s
Build Nginx-based docker image / build-static-assets (pull_request) Failing after 1h10m25s
Assign a name to every tables arrangement
2024-11-03 08:44:31 +01:00

12 lines
256 B
Ruby

# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
RSpec.describe TablesArrangement, type: :model do
describe 'callbacks' do
it 'assigns a name before creation' do
expect(described_class.create!.name).to be_present
end
end
end