chore: apply rubocop

This commit is contained in:
gabrieljablonski 2025-05-18 11:44:40 -03:00
parent ba14d51d23
commit adb1a3375d
2 changed files with 7 additions and 7 deletions

View File

@ -203,12 +203,12 @@ RSpec.describe Account do
context 'when using with_auto_resolve scope' do
it 'finds accounts with auto_resolve_after set' do
account.update(auto_resolve_after: 40 * 24 * 60)
account.update!(auto_resolve_after: 40 * 24 * 60)
expect(described_class.with_auto_resolve).to include(account)
end
it 'does not find accounts without auto_resolve_after' do
account.update(auto_resolve_after: nil)
account.update!(auto_resolve_after: nil)
expect(described_class.with_auto_resolve).not_to include(account)
end
end

View File

@ -9,7 +9,7 @@ describe MessageTemplates::Template::CsatSurvey do
describe '#perform' do
context 'when no survey rules are configured' do
it 'creates a CSAT survey message' do
inbox.update(csat_config: {})
inbox.update!(csat_config: {})
service.perform
@ -37,7 +37,7 @@ describe MessageTemplates::Template::CsatSurvey do
context 'when conversation has matching labels' do
it 'creates a CSAT survey message' do
conversation.update(label_list: %w[support urgent])
conversation.update!(label_list: %w[support urgent])
service.perform
@ -51,7 +51,7 @@ describe MessageTemplates::Template::CsatSurvey do
context 'when conversation has no matching labels' do
it 'does not create a CSAT survey message' do
conversation.update(label_list: %w[billing-support payment])
conversation.update!(label_list: %w[billing-support payment])
service.perform
@ -78,7 +78,7 @@ describe MessageTemplates::Template::CsatSurvey do
context 'when conversation does not have matching labels' do
it 'creates a CSAT survey message' do
conversation.update(label_list: %w[billing payment])
conversation.update!(label_list: %w[billing payment])
service.perform
@ -89,7 +89,7 @@ describe MessageTemplates::Template::CsatSurvey do
context 'when conversation has matching labels' do
it 'does not create a CSAT survey message' do
conversation.update(label_list: %w[support urgent])
conversation.update!(label_list: %w[support urgent])
service.perform