FIX: Use the proper i18n argument name

This commit is contained in:
Loïc Guitaut 2024-06-12 10:38:40 +02:00 committed by Loïc Guitaut
parent 6be4ef59fa
commit ed49f41d92
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class ThemeSetting < ActiveRecord::Base
:json_value,
I18n.t(
"theme_settings.errors.json_value.too_large",
max_size_megabytes: MAXIMUM_JSON_VALUE_SIZE_BYTES / 1024 / 1024,
max_size: MAXIMUM_JSON_VALUE_SIZE_BYTES / 1024 / 1024,
),
)
end

View File

@ -24,7 +24,7 @@ RSpec.describe ThemeSetting do
expect(theme_setting.errors[:json_value]).to contain_exactly(
I18n.t(
"theme_settings.errors.json_value.too_large",
max_size_megabytes: (bytesize - 1) / 1024 / 1024,
max_size: (bytesize - 1) / 1024 / 1024,
),
)
end