-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WTH - Dashboard: Study Level Activity Add Validation to 'Time' Data
I added validation for time with regular expression to only allow submissions up to 2 digits after decimal point. Also, added validation to ensure the numericality and that the number is greater than zero. Wrote corresponding specs to test for multiple scenarios.
- Loading branch information
William Holt
committed
May 26, 2016
1 parent
952899a
commit 5f92c9d
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 file contains 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