summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2017-10-01 21:50:38 -0500
committerRubén Dávila <ruben@gitlab.com>2017-10-05 08:25:28 -0500
commit85c6652a387276ca58b900fa34948cf3cba489a5 (patch)
treef9fd72f205bdb620dadd89b2d8fcf053dabb926e /spec/factories
parentc50725fecfb776d56c95ef070940ca6c85786ecf (diff)
downloadgitlab-ce-85c6652a387276ca58b900fa34948cf3cba489a5.tar.gz
Fix some broken specs
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/gpg_key_subkeys.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/gpg_key_subkeys.rb b/spec/factories/gpg_key_subkeys.rb
index d896b4e217e..66ecb44d84b 100644
--- a/spec/factories/gpg_key_subkeys.rb
+++ b/spec/factories/gpg_key_subkeys.rb
@@ -4,7 +4,7 @@ FactoryGirl.define do
factory :gpg_key_subkey do
gpg_key
- keyid { gpg_key.subkeys.last.keyid }
- fingerprint { gpg_key.subkeys.last.fingerprint }
+ sequence(:keyid) { |n| "keyid-#{n}" }
+ sequence(:fingerprint) { |n| "fingerprint-#{n}" }
end
end