debian-mirror-gitlab/spec/models/group_deploy_keys_group_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
389 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# 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