mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
15 lines
422 B
Ruby
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
|