Permalink
Browse files

Updated JS test suite for 3.2.rc.2

  • Loading branch information...
1 parent fe7d21e commit 73e25178e1147eb341ee1101d0809a9117797b5e @bcardarella bcardarella committed Oct 9, 2012
@@ -4,7 +4,7 @@ module('Validate Formtastic', {
type: 'Formtastic::FormBuilder',
inline_error_class: 'inline-errors',
validators: {
- "user[name]":{"presence":{"message": "must be present"}, "format":{"message":"is invalid","with":/\d+/}}
+ "user[name]":{"presence":[{"message": "must be present"}], "format":[{"message":"is invalid","with":/\d+/}]}
}
}
@@ -20,7 +20,6 @@ module('Validate Formtastic', {
.append($('<input />', {
name: 'user[name]',
id: 'user_name',
- 'data-validate': 'true',
type: 'text'
}))
.append($('<label for="user_name">Name</label>'));
@@ -1,13 +1,14 @@
/*
- Client Side Validations - Formtastic - v2.0.0.beta.3
+ Client Side Validations - Formtastic - v2.2.0.rc.2
https://github.com/dockyard/client_side_validations-formtastic
Copyright (c) 2012 DockYard, LLC
Licensed under the MIT license
http://www.opensource.org/licenses/mit-license.php
*/
+
(function() {
ClientSideValidations.formBuilders['Formtastic::FormBuilder'] = {

0 comments on commit 73e2517

Please sign in to comment.