@@ -86,32 +86,26 class UserTest < ActiveSupport::TestCase | |||
|
86 | 86 | assert user.save |
|
87 | 87 | end |
|
88 | 88 | |
|
89 | context "User#before_create" do | |
|
90 | should "set the mail_notification to the default Setting" do | |
|
89 | def test_user_before_create_should_set_the_mail_notification_to_the_default_setting | |
|
91 | 90 |
|
|
92 | 91 |
|
|
93 | ||
|
94 | 92 |
|
|
95 | 93 |
|
|
96 | 94 |
|
|
97 | 95 |
|
|
98 | 96 |
|
|
99 | end | |
|
100 | 97 | |
|
101 | context "User.login" do | |
|
102 | should "be case-insensitive." do | |
|
98 | def test_user_login_be_case_insensitive | |
|
103 | 99 |
|
|
104 | 100 |
|
|
105 | 101 |
|
|
106 | 102 |
|
|
107 | ||
|
108 | 103 |
|
|
109 | 104 |
|
|
110 | 105 |
|
|
111 | 106 |
|
|
112 | 107 |
|
|
113 | 108 |
|
|
114 | end | |
|
115 | 109 | |
|
116 | 110 | def test_mail_uniqueness_should_not_be_case_sensitive |
|
117 | 111 | u = User.new(:firstname => "new", :lastname => "user", :mail => "newuser@somenet.foo") |
General Comments 0
You need to be logged in to leave comments.
Login now