diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-06-14 09:17:34 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:42:53 +0200 |
commit | 8236b12dff3df6d223888664c820ae54b4e0eaf7 (patch) | |
tree | 4ece75be33d55ca12173cb7b3162fe275a76958c /spec/models/gpg_signature_spec.rb | |
parent | 2f956fae0399f6f2eb370ed186c7bb4a9486178b (diff) | |
download | gitlab-ce-8236b12dff3df6d223888664c820ae54b4e0eaf7.tar.gz |
gpg signature model for gpg verification caching
Diffstat (limited to 'spec/models/gpg_signature_spec.rb')
-rw-r--r-- | spec/models/gpg_signature_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/models/gpg_signature_spec.rb b/spec/models/gpg_signature_spec.rb new file mode 100644 index 00000000000..d2720c41694 --- /dev/null +++ b/spec/models/gpg_signature_spec.rb @@ -0,0 +1,14 @@ +require 'rails_helper' + +RSpec.describe GpgSignature do + describe 'associations' do + it { is_expected.to belong_to(:project) } + it { is_expected.to belong_to(:gpg_key) } + end + + describe 'validation' do + subject { described_class.new } + it { is_expected.to validate_presence_of(:commit_sha) } + it { is_expected.to validate_presence_of(:project) } + end +end |