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

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

require 'spec_helper'

RSpec.describe GroupDeployKeysGroup do
  describe "Associations" do
    it { is_expected.to belong_to(:group_deploy_key) }
    it { is_expected.to belong_to(:group) }
  end

  describe "Validation" do
    it { is_expected.to validate_presence_of(:group_id) }
    it { is_expected.to validate_presence_of(:group_deploy_key) }
  end
end