This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.junit.Test; | |
| import java.time.Instant; | |
| import java.time.LocalDateTime; | |
| import java.time.Month; | |
| import java.time.ZoneId; | |
| import static org.junit.Assert.assertEquals; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # this uses upcoming dm-validations, it's not released yet | |
| class User | |
| include Virtus | |
| include DataMapper::Validations | |
| # basic info | |
| attribute :email, String | |
| attribute :password, String | |
| attribute :password_confirmation, String |