diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-25 21:20:48 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:46:04 +0200 |
commit | fef030c23dff6f3b11b0e6bfd4c9443106375de1 (patch) | |
tree | 3da1d4d13a872ba55f71914fcc1ba2b5893bbe32 /spec | |
parent | a5f04df8d76d7c3c4318820fc3053a9823143dba (diff) | |
download | gitlab-ce-fef030c23dff6f3b11b0e6bfd4c9443106375de1.tar.gz |
validate the foreign_key instead of the relation
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/gpg_signature_spec.rb | 2 |
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 |