From 710e0abb8d9417aace905acce52400bc422cffe7 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Fri, 25 Apr 2008 15:23:37 +0000 Subject: [PATCH] ActionItem315: tested the person name with the person info setting --- test/unit/person_test.rb | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/test/unit/person_test.rb b/test/unit/person_test.rb index 4884303..fea8d9a 100644 --- a/test/unit/person_test.rb +++ b/test/unit/person_test.rb @@ -202,4 +202,11 @@ class PersonTest < Test::Unit::TestCase assert_not_includes p1.friends(true), p2 end + should 'return info name instead of name when info is setted' do + p = create_user('ze_maria').person + p.person_info = PersonInfo.create!(:name => 'José') + + assert_equal 'José', p.name + end + end -- libgit2 0.21.2