diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-05 18:50:05 +0300 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-06 14:53:15 +0300 |
commit | 9ebbcb8f8b401d2a49cfec6b9cb55bf9703d8180 (patch) | |
tree | 0b87b1cc157b4b431b0480ac183ac9992251b372 /spec/models/user_interacted_project_spec.rb | |
parent | 11a559f7c9ce21b040c3a9c0544169f4885b9fa6 (diff) |
Operate on ids to avoid unnecessary loading.
Diffstat (limited to 'spec/models/user_interacted_project_spec.rb')
-rw-r--r-- | spec/models/user_interacted_project_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/user_interacted_project_spec.rb b/spec/models/user_interacted_project_spec.rb index 1428fc2d433..cb4bb3372d4 100644 --- a/spec/models/user_interacted_project_spec.rb +++ b/spec/models/user_interacted_project_spec.rb @@ -55,6 +55,6 @@ describe UserInteractedProject do end end - it { is_expected.to validate_presence_of(:project) } - it { is_expected.to validate_presence_of(:user) } + it { is_expected.to validate_presence_of(:project_id) } + it { is_expected.to validate_presence_of(:user_id) } end |