mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 08:04:34 +08:00
Fix comment model spec
This commit is contained in:
parent
0c7bfc244b
commit
e040b59e26
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue