Check to see if the e-mail test works
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 15 Jul 2008 17:51:26 +0000 (17:51 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 15 Jul 2008 17:51:26 +0000 (17:51 +0000)
test/unit/user_test.rb

index 2f31da709efb913486385192a69377f3d9b4cab0..bb17368b49b46ce464edb59223b547383d9b1f63 100644 (file)
@@ -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