fix: typo in method name extention => extension
This commit is contained in:
parent
148611d595
commit
8326cf080e
2 changed files with 9 additions and 9 deletions
|
@ -618,12 +618,12 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def expiration_date_with_extention
|
||||
def expiration_date_with_extension
|
||||
expiration_date_reference + conservation_extension + procedure.duree_conservation_dossiers_dans_ds.months
|
||||
end
|
||||
|
||||
def expiration_notification_date
|
||||
expiration_date_with_extention - REMAINING_WEEKS_BEFORE_EXPIRATION.weeks
|
||||
expiration_date_with_extension - REMAINING_WEEKS_BEFORE_EXPIRATION.weeks
|
||||
end
|
||||
|
||||
def close_to_expiration?
|
||||
|
@ -642,7 +642,7 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
|
||||
def expiration_date
|
||||
after_notification_expiration_date.presence || expiration_date_with_extention
|
||||
after_notification_expiration_date.presence || expiration_date_with_extension
|
||||
end
|
||||
|
||||
def duration_after_notice
|
||||
|
|
|
@ -93,8 +93,8 @@ describe Dossier, type: :model do
|
|||
expect(expiring_dossier.close_to_expiration?).to be_falsey
|
||||
expect(expiring_dossier_with_notification.close_to_expiration?).to be_falsey
|
||||
|
||||
expect(expiring_dossier.expiration_date).to eq(expiring_dossier.expiration_date_with_extention)
|
||||
expect(expiring_dossier_with_notification.expiration_date).to eq(expiring_dossier_with_notification.expiration_date_with_extention)
|
||||
expect(expiring_dossier.expiration_date).to eq(expiring_dossier.expiration_date_with_extension)
|
||||
expect(expiring_dossier_with_notification.expiration_date).to eq(expiring_dossier_with_notification.expiration_date_with_extension)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -144,8 +144,8 @@ describe Dossier, type: :model do
|
|||
expect(expiring_dossier.close_to_expiration?).to be_falsey
|
||||
expect(expiring_dossier_with_notification.close_to_expiration?).to be_falsey
|
||||
|
||||
expect(expiring_dossier.expiration_date).to eq(expiring_dossier.expiration_date_with_extention)
|
||||
expect(expiring_dossier_with_notification.expiration_date).to eq(expiring_dossier_with_notification.expiration_date_with_extention)
|
||||
expect(expiring_dossier.expiration_date).to eq(expiring_dossier.expiration_date_with_extension)
|
||||
expect(expiring_dossier_with_notification.expiration_date).to eq(expiring_dossier_with_notification.expiration_date_with_extension)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -204,8 +204,8 @@ describe Dossier, type: :model do
|
|||
expect(expiring_dossier.close_to_expiration?).to be_falsey
|
||||
expect(expiring_dossier_with_notification.close_to_expiration?).to be_falsey
|
||||
|
||||
expect(expiring_dossier.expiration_date).to eq(expiring_dossier.expiration_date_with_extention)
|
||||
expect(expiring_dossier_with_notification.expiration_date).to eq(expiring_dossier_with_notification.expiration_date_with_extention)
|
||||
expect(expiring_dossier.expiration_date).to eq(expiring_dossier.expiration_date_with_extension)
|
||||
expect(expiring_dossier_with_notification.expiration_date).to eq(expiring_dossier_with_notification.expiration_date_with_extension)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue