Skip to content

Commit 2e80429

Browse files
Fix test breaking due to updated translation
1 parent f1dfbf2 commit 2e80429

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

spec/mailers/record_action_mailer_spec.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
end
417417
end
418418

419-
describe 'transition request with diferent locale' do
419+
describe 'transition request with different locale' do
420420
before do
421421
@user1.locale = 'ar-LB'
422422
@user1.save(validate: false)
@@ -432,7 +432,12 @@
432432

433433
it 'renders the body' do
434434
expect(mail.text_part.body.encoded)
435-
.to match('مستخدم بريميرو user2 من مؤسسة Test Agency يطلب أن تنقل ملكية هذا السجل من نوع Case ومعرّف')
435+
.to match(
436+
%(مستخدم بريميرو user2 من الهيئة Test Agency يطلب أن تنقل ملكية هذا السجل من نوع Case ومعرّف
437+
<a href=\"https://localhost:3000/v2/cases/#{@case.id}\">#{@case.short_id}</a>
438+
بحيث يتمكنون من تقديم خدمات إدارة للشخص في منطقتهم. إذا كان التحويل مقبولا من طرفك، يرجى النقر على رابط معرف نوع السجل
439+
Case في هذا الايميل لفتح نوع السجل Case في بريميرو والبدء بعملية التحويل.).squish
440+
)
436441
end
437442
end
438443

0 commit comments

Comments
 (0)