From: Shaun McDonald Date: Tue, 15 Jul 2008 17:51:26 +0000 (+0000) Subject: Check to see if the e-mail test works X-Git-Tag: live~7622^2~317 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/679e59210caf049bec515f9b7e6fdc6071b1a18a?ds=sidebyside Check to see if the e-mail test works --- diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 2f31da709..bb17368b4 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -53,4 +53,10 @@ class UserTest < Test::Unit::TestCase assert !user.valid?, "#{name} is valid when it shouldn't be" end end + + def test_display_name_length + user = users(:normal_user) + user.display_name = nil + asser user.valid, " should allow nil display name" + end end