diff --git a/spec/jobs/download_backup_email_spec.rb b/spec/jobs/download_backup_email_spec.rb index cda261c675d..5c389750f92 100644 --- a/spec/jobs/download_backup_email_spec.rb +++ b/spec/jobs/download_backup_email_spec.rb @@ -15,8 +15,6 @@ RSpec.describe Jobs::DownloadBackupEmail do email_prefix: SiteSetting.title )) - expect(email.body.raw_source).to eq(I18n.t('download_backup_mailer.text_body_template', - backup_file_path: "http://some.example.test/?token=#{EmailBackupToken.get(user.id)}" - )) + expect(email.body.raw_source).to include("http://some.example.test/?token=#{EmailBackupToken.get(user.id)}") end end