Commit 65d2251e9e352e1d4dead437f0dce77f70e29308

Authored by Antonio Terceiro
1 parent cfc3355b

Fixing test

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
test/unit/profile_test.rb
@@ -806,9 +806,9 @@ class ProfileTest < Test::Unit::TestCase @@ -806,9 +806,9 @@ class ProfileTest < Test::Unit::TestCase
806 assert_equal 'code', p.nickname 806 assert_equal 'code', p.nickname
807 end 807 end
808 808
809 - should 'return truncated name in short_name with 15 chars by default if nickname is blank' do  
810 - p = Profile.new(:name => 'a123456789abcdefghij')  
811 - assert_equal 'a123456789ab...', p.short_name 809 + should 'return truncated name in short_name with 40 chars by default if nickname is blank' do
  810 + p = Profile.new(:name => 'a' * 41)
  811 + assert_equal 'a' * 37 + '...', p.short_name
812 end 812 end
813 813
814 should 'return truncated name in short_name with chars size if nickname is blank' do 814 should 'return truncated name in short_name with chars size if nickname is blank' do