summaryrefslogtreecommitdiff
path: root/spec/models/gpg_key_subkey_spec.rb
blob: c1d9e2bde43bd93ef5208864674b245659ab4d5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.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