summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-05 16:50:05 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-03-06 12:53:15 +0100
commit9ebbcb8f8b401d2a49cfec6b9cb55bf9703d8180 (patch)
tree0b87b1cc157b4b431b0480ac183ac9992251b372 /spec/models
parent11a559f7c9ce21b040c3a9c0544169f4885b9fa6 (diff)
downloadgitlab-ce-9ebbcb8f8b401d2a49cfec6b9cb55bf9703d8180.tar.gz
Operate on ids to avoid unnecessary loading.
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/user_interacted_project_spec.rb4
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