debian-mirror-gitlab/spec/models/group_deploy_keys_group_spec.rb
2020-10-24 23:57:45 +05:30

15 lines
389 B
Ruby

# 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