comparison test/unit/.svn/text-base/user_test.rb.svn-base @ 1:cca12e1c1fd4

* Update to Redmine trunk (SVN revisions 3860-3892)
author Chris Cannam
date Wed, 28 Jul 2010 12:08:28 +0100
parents 513646585e45
children 40f7cfd4df19
comparison
equal deleted inserted replaced
0:513646585e45 1:cca12e1c1fd4
32 assert_equal 2, User.count(:all, :conditions => {:firstname => 'Testing connection'}) 32 assert_equal 2, User.count(:all, :conditions => {:firstname => 'Testing connection'})
33 end 33 end
34 34
35 def test_truth 35 def test_truth
36 assert_kind_of User, @jsmith 36 assert_kind_of User, @jsmith
37 end
38
39 def test_mail_should_be_stripped
40 u = User.new
41 u.mail = " foo@bar.com "
42 assert_equal "foo@bar.com", u.mail
37 end 43 end
38 44
39 def test_create 45 def test_create
40 user = User.new(:firstname => "new", :lastname => "user", :mail => "newuser@somenet.foo") 46 user = User.new(:firstname => "new", :lastname => "user", :mail => "newuser@somenet.foo")
41 47