diff --git a/test/unit/profile_test.rb b/test/unit/profile_test.rb index 786b187..5e2947e 100644 --- a/test/unit/profile_test.rb +++ b/test/unit/profile_test.rb @@ -806,9 +806,9 @@ class ProfileTest < Test::Unit::TestCase assert_equal 'code', p.nickname end - should 'return truncated name in short_name with 15 chars by default if nickname is blank' do - p = Profile.new(:name => 'a123456789abcdefghij') - assert_equal 'a123456789ab...', p.short_name + should 'return truncated name in short_name with 40 chars by default if nickname is blank' do + p = Profile.new(:name => 'a' * 41) + assert_equal 'a' * 37 + '...', p.short_name end should 'return truncated name in short_name with chars size if nickname is blank' do -- libgit2 0.21.2