Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group_setting_spec.rb « dependency_proxy « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4da1fe42ff271e84567e21d1c228fe95778ffbba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe DependencyProxy::GroupSetting, type: :model do
  describe 'relationships' do
    it { is_expected.to belong_to(:group) }
  end

  describe 'default values' do
    it { is_expected.to be_enabled }
    it { expect(described_class.new(enabled: false)).not_to be_enabled }
  end

  describe 'validations' do
    it { is_expected.to validate_presence_of(:group) }
  end
end