Add User username_lower attribute

This commit is contained in:
Rei
2014-01-03 20:15:47 +08:00
parent 3ead4d9186
commit 5c2d239d6c
4 changed files with 11 additions and 0 deletions

View File

@@ -4,4 +4,8 @@ class UserTest < ActiveSupport::TestCase
test "should create user" do
assert_not_nil create(:user)
end
test "should save lower username" do
assert_equal "lower", create(:user, username: 'LOWER').username_lower
end
end