Commit 710e0abb8d9417aace905acce52400bc422cffe7
1 parent
cacb978e
Exists in
master
and in
29 other branches
ActionItem315: tested the person name with the person info setting
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1700 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
test/unit/person_test.rb
... | ... | @@ -202,4 +202,11 @@ class PersonTest < Test::Unit::TestCase |
202 | 202 | assert_not_includes p1.friends(true), p2 |
203 | 203 | end |
204 | 204 | |
205 | + should 'return info name instead of name when info is setted' do | |
206 | + p = create_user('ze_maria').person | |
207 | + p.person_info = PersonInfo.create!(:name => 'José') | |
208 | + | |
209 | + assert_equal 'José', p.name | |
210 | + end | |
211 | + | |
205 | 212 | end | ... | ... |