Commit cf1a23163ed92ba38185ae3264014dd8ee4a9197
1 parent
eb2da975
Exists in
master
and in
29 other branches
ActionItem315: fixing the fix
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1730 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
app/models/person.rb
test/unit/person_test.rb
... | ... | @@ -209,4 +209,10 @@ class PersonTest < Test::Unit::TestCase |
209 | 209 | assert_equal 'José', p.name |
210 | 210 | end |
211 | 211 | |
212 | + should 'fallback to login when person_info is not present' do | |
213 | + p = create_user('randomhacker').person | |
214 | + p.person_info = nil | |
215 | + assert_equal 'randomhacker', p.name | |
216 | + end | |
217 | + | |
212 | 218 | end | ... | ... |