Reduce rubocop diff

This commit is contained in:
Sojan Jose
2026-01-16 01:09:07 -08:00
parent 9ef476c6d8
commit 7061c3dde0
14 changed files with 29 additions and 61 deletions
+2 -2
View File
@@ -143,13 +143,13 @@ RSpec.describe Account do
context 'when auto_resolve_after' do
it 'validates minimum value' do
account.settings = { auto_resolve_after: 4 }
expect(account).not_to be_valid
expect(account).to be_invalid
expect(account.errors.messages).to eq({ auto_resolve_after: ['must be greater than or equal to 10'] })
end
it 'validates maximum value' do
account.settings = { auto_resolve_after: 1_439_857 }
expect(account).not_to be_valid
expect(account).to be_invalid
expect(account.errors.messages).to eq({ auto_resolve_after: ['must be less than or equal to 1439856'] })
end
@@ -1,6 +1,6 @@
require 'rails_helper'
RSpec.describe 'Conversation Audit' do
RSpec.describe 'Conversation Audit', type: :model do
let(:account) { create(:account) }
let(:conversation) { create(:conversation, account: account) }