From e040b59e267477129ca2a9a5676fdfe045aee761 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Fri, 24 Jan 2025 15:24:39 +0100 Subject: [PATCH] Fix comment model spec --- spec/models/comment_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/comment_spec.rb b/spec/models/comment_spec.rb index 356e0cc1a..110a1d355 100644 --- a/spec/models/comment_spec.rb +++ b/spec/models/comment_spec.rb @@ -32,6 +32,6 @@ describe Comment, type: :model do describe 'Validations' do it { should validate_presence_of :message } it { should validate_length_of(:message).is_at_most(Constants::TEXT_MAX_LENGTH) } - it { should validate_presence_of :user } + it { should belong_to(:user) } end end