jbrunton / frappuccino-core

2 stars 3 forks source link

tidy up and extend validator code #17

Open jbrunton opened 11 years ago

jbrunton commented 11 years ago

See lib/assets/javascripts/core/resources/validators for the existing validators.

Unit tests should be added to the spec/javascripts/spec/resources/validators directory. There's one example already, for the presence validator.

jbrunton commented 11 years ago

To run unit tests, from a checkout of the frappuccino-core repo, run

bundle exec rackup -p 4000

and then point your browser at

http://localhost:4000/jasmine

and you should see the tests all passing.