Skip to content

Commit 18a302d

Browse files
committed
Add a test for the email normalization
1 parent 76efa0f commit 18a302d

File tree

1 file changed

+4
-3
lines changed
  • railties/lib/rails/generators/test_unit/authentication/templates/test/models

1 file changed

+4
-3
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
require "test_helper"
22

33
class UserTest < ActiveSupport::TestCase
4-
# test "the truth" do
5-
# assert true
6-
# end
4+
test "downcases and strips email_address" do
5+
user = User.new(email_address: " [email protected] ")
6+
assert_equal("[email protected]", user.email_address)
7+
end
78
end

0 commit comments

Comments
 (0)