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-07-25 22:20:48 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 16:46:04 +0300
commitfef030c23dff6f3b11b0e6bfd4c9443106375de1 (patch)
tree3da1d4d13a872ba55f71914fcc1ba2b5893bbe32 /spec/models/gpg_signature_spec.rb
parenta5f04df8d76d7c3c4318820fc3053a9823143dba (diff)
validate the foreign_key instead of the relation
Diffstat (limited to 'spec/models/gpg_signature_spec.rb')
-rw-r--r--spec/models/gpg_signature_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/gpg_signature_spec.rb b/spec/models/gpg_signature_spec.rb
index b6f256e61ee..9a9b1900aa5 100644
--- a/spec/models/gpg_signature_spec.rb
+++ b/spec/models/gpg_signature_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe GpgSignature do
describe 'validation' do
subject { described_class.new }
it { is_expected.to validate_presence_of(:commit_sha) }
- it { is_expected.to validate_presence_of(:project) }
+ it { is_expected.to validate_presence_of(:project_id) }
it { is_expected.to validate_presence_of(:gpg_key_primary_keyid) }
end