Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

adapt specs

ulfertsbd3f182c3de4
diff --git a/spec/models/custom_field_spec.rb b/spec/models/custom_field_spec.rb
index dfead8ad2c3..d9b87d0dc3f 100644
--- a/spec/models/custom_field_spec.rb
+++ b/spec/models/custom_field_spec.rb
@@ -37,8 +37,8 @@ describe CustomField, type: :model do
let(:field2) { FactoryBot.build :custom_field }
describe '#name' do
- it { should validate_presence_of(:name) }
- it { should validate_length_of(:name).is_at_most(30) }
+ it { is_expected.to validate_presence_of(:name) }
+ it { is_expected.to validate_length_of(:name).is_at_most(256) }
describe 'uniqueness' do
describe 'WHEN value, locale and type are identical' do