Fix use of deprecated keyword args syntax in reports

This commit is contained in:
Matt-Yorkley
2022-01-18 10:59:53 +00:00
parent 783c097653
commit 8ec7d3b651
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ module OrderManagement
private
def i18n_translate(translation_key, options = {})
I18n.t("order_management.reports.enterprise_fee_summary.#{translation_key}", options)
I18n.t("order_management.reports.enterprise_fee_summary.#{translation_key}", **options)
end
end
end

View File

@@ -678,7 +678,7 @@ describe OrderManagement::Reports::EnterpriseFeeSummary::ReportService do
# Helper methods for example group
def i18n_translate(translation_key, options = {})
I18n.t("order_management.reports.enterprise_fee_summary.#{translation_key}", options)
I18n.t("order_management.reports.enterprise_fee_summary.#{translation_key}", **options)
end
def expect_total_attributes(total, expected_attribute_list)