2019-05-18 00:54:41 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
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
|