diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-07-25 09:50:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-07-25 09:50:41 +0000 |
commit | 66820dbed37f02a3371daa296c59a941c1f50a50 (patch) | |
tree | 2cb50a89802d99e7e63feb21651c15d8191f229d /test | |
parent | fd0623bf69a2354bada6eb679970d440fc1e00a1 (diff) | |
download | redmine-66820dbed37f02a3371daa296c59a941c1f50a50.tar.gz redmine-66820dbed37f02a3371daa296c59a941c1f50a50.zip |
Strips user email (#5834).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3873 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/user_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 5a0c9f87e..ea40ccff6 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -35,6 +35,12 @@ class UserTest < ActiveSupport::TestCase def test_truth assert_kind_of User, @jsmith end + + def test_mail_should_be_stripped + u = User.new + u.mail = " foo@bar.com " + assert_equal "foo@bar.com", u.mail + end def test_create user = User.new(:firstname => "new", :lastname => "user", :mail => "newuser@somenet.foo") |