diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-08-31 20:43:24 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-05 12:18:33 +0200 |
commit | b62c1620ea8d4260bb60303d4825a214c7ed56ee (patch) | |
tree | aba652a9e6f1910593775b2b443f9850279cfb29 /spec | |
parent | aa98c36e470eb6b11baacac9a27c72ccf3c3a5c6 (diff) | |
download | gitlab-ce-b62c1620ea8d4260bb60303d4825a214c7ed56ee.tar.gz |
drop backwards compatibility for valid_signature
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/gpg_signature_spec.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/models/gpg_signature_spec.rb b/spec/models/gpg_signature_spec.rb index d77eeda4a79..c58fd46762a 100644 --- a/spec/models/gpg_signature_spec.rb +++ b/spec/models/gpg_signature_spec.rb @@ -25,34 +25,4 @@ RSpec.describe GpgSignature do gpg_signature.commit end end - - describe '#verified?' do - it 'returns true when `verification_status` is not set, but `valid_signature` is true' do - signature = create :gpg_signature, valid_signature: true, verification_status: nil - - expect(signature.verified?).to be true - expect(signature.reload.verified?).to be true - end - - it 'returns true when `verification_status` is set to :verified' do - signature = create :gpg_signature, verification_status: :verified - - expect(signature.verified?).to be true - expect(signature.reload.verified?).to be true - end - - it 'returns false when `verification_status` is set to :unknown_key' do - signature = create :gpg_signature, verification_status: :unknown_key - - expect(signature.verified?).to be false - expect(signature.reload.verified?).to be false - end - - it 'returns false when `verification_status` is not set, but `valid_signature` is false' do - signature = create :gpg_signature, valid_signature: false, verification_status: nil - - expect(signature.verified?).to be false - expect(signature.reload.verified?).to be false - end - end end |