mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
17 lines
396 B
Ruby
17 lines
396 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe Group::CrmSettings, feature_category: :team_planning do
|
|
describe 'associations' do
|
|
it { is_expected.to belong_to(:group) }
|
|
it { is_expected.to belong_to(:source_group).optional }
|
|
end
|
|
|
|
describe 'validations' do
|
|
subject { build(:crm_settings) }
|
|
|
|
it { is_expected.to validate_presence_of(:group) }
|
|
end
|
|
end
|