diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index 34280c673..84ab401e5 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -18,7 +18,7 @@ class Constants # Max characters for long text fields TEXT_MAX_LENGTH = 10000 # Max characters for rich text fields (in html format) - RICH_TEXT_MAX_LENGTH = 50000 + RICH_TEXT_MAX_LENGTH = 100000 # Max characters for color field (given in HEX format) COLOR_MAX_LENGTH = 7 # Max characters for text in dropdown list element diff --git a/spec/models/system_notification_spec.rb b/spec/models/system_notification_spec.rb index d309ed03f..72a7226f7 100644 --- a/spec/models/system_notification_spec.rb +++ b/spec/models/system_notification_spec.rb @@ -22,7 +22,7 @@ describe SystemNotification do describe '#modal_body' do it { is_expected.to validate_presence_of(:modal_body) } - it { is_expected.to validate_length_of(:modal_body).is_at_most(50000) } + it { is_expected.to validate_length_of(:modal_body).is_at_most(100000) } end describe '#description' do