From 679e59210caf049bec515f9b7e6fdc6071b1a18a Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Tue, 15 Jul 2008 17:51:26 +0000 Subject: [PATCH] Check to see if the e-mail test works --- test/unit/user_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5