Files
gitlab-foss/spec/models/group_deletion_schedule_spec.rb
2025-03-27 18:07:09 +00:00

15 lines
422 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe GroupDeletionSchedule, feature_category: :groups_and_projects do
describe 'Associations' do
it { is_expected.to belong_to :group }
it { is_expected.to belong_to(:deleting_user).class_name('User').with_foreign_key('user_id') }
end
describe 'Validations' do
it { is_expected.to validate_presence_of(:marked_for_deletion_on) }
end
end