summaryrefslogtreecommitdiff
path: root/spec/models/key_spec.rb
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-06-16 12:53:32 +0200
committerPaco Guzman <pacoguzmanp@gmail.com>2016-06-20 13:29:04 +0200
commitca01c4c6484aa135234028e5e1ca5829adad1a50 (patch)
treec8033b1de6db640c7fab80d2a8f7a800a9d943d8 /spec/models/key_spec.rb
parent98cede7ebeae9dac994b35b66be6aab14eb932b3 (diff)
downloadgitlab-ce-ca01c4c6484aa135234028e5e1ca5829adad1a50.tar.gz
Remove Duplicated keys add UNIQUE index to fingerprint18697-uniqueness-key-validation
Diffstat (limited to 'spec/models/key_spec.rb')
-rw-r--r--spec/models/key_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb
index 26fbedbef2f..49cf3d8633a 100644
--- a/spec/models/key_spec.rb
+++ b/spec/models/key_spec.rb
@@ -26,7 +26,7 @@ describe Key, models: true do
end
end
- context "validation of uniqueness" do
+ context "validation of uniqueness (based on fingerprint uniqueness)" do
let(:user) { create(:user) }
it "accepts the key once" do