Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-02-22 18:22:39 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 16:40:40 +0300
commitab4120de3165ea262de726aa3e102b74951d2bca (patch)
tree96c42755e279a415bf1dd1375dd389370f030651 /spec/models/gpg_key_spec.rb
parent7b7cd6f69d59092a55fc8b293edf09638fba20d9 (diff)
only validate gpg_key#fingerprint "internally"
Diffstat (limited to 'spec/models/gpg_key_spec.rb')
-rw-r--r--spec/models/gpg_key_spec.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/models/gpg_key_spec.rb b/spec/models/gpg_key_spec.rb
index 24ef291a021..1c5dd95ba65 100644
--- a/spec/models/gpg_key_spec.rb
+++ b/spec/models/gpg_key_spec.rb
@@ -6,8 +6,6 @@ describe GpgKey do
end
describe "validation" do
- it { is_expected.to validate_presence_of(:fingerprint) }
-
it { is_expected.to validate_presence_of(:key) }
it { is_expected.to validate_uniqueness_of(:key) }
it { is_expected.to allow_value("-----BEGIN PGP PUBLIC KEY BLOCK-----\nkey").for(:key) }