diff options
Diffstat (limited to 'spec/models/timelog_spec.rb')
-rw-r--r-- | spec/models/timelog_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/timelog_spec.rb b/spec/models/timelog_spec.rb index bc042f7a639..9d6fda1d2a9 100644 --- a/spec/models/timelog_spec.rb +++ b/spec/models/timelog_spec.rb @@ -17,6 +17,8 @@ RSpec.describe Timelog do it { is_expected.to validate_presence_of(:time_spent) } it { is_expected.to validate_presence_of(:user) } + it { is_expected.to validate_length_of(:summary).is_at_most(255) } + it { expect(subject.project_id).not_to be_nil } describe 'Issuable validation' do |