debian-mirror-gitlab/spec/models/gpg_key_subkey_spec.rb
2019-07-07 11:18:12 +05:30

17 lines
414 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
describe GpgKeySubkey do
subject { build(:gpg_key_subkey) }
describe 'associations' do
it { is_expected.to belong_to(:gpg_key) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:gpg_key_id) }
it { is_expected.to validate_presence_of(:fingerprint) }
it { is_expected.to validate_presence_of(:keyid) }
end
end