FIX: Use the proper i18n argument name
This commit is contained in:
parent
6be4ef59fa
commit
ed49f41d92
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue