# |
Apr 30th 2010, 15:14 |
ADmad |
*he should use |
# |
Apr 30th 2010, 15:14 |
ADmad |
so if user wants to be sure of having the required class he use use the notEmpty rule imo |
# |
Apr 30th 2010, 15:13 |
ADmad |
hmm yes it does in this case, but there can be other cases like say custom regex where empty is a valid value |
# |
Apr 30th 2010, 15:12 |
jose_zap |
but allowEmpty does imply it, doesn't it?¡ |
# |
Apr 30th 2010, 15:12 |
ADmad |
it doesnt add the 'required' class because there is no 'notEmpty' rules |
# |
Apr 30th 2010, 15:12 |
jose_zap |
no? |
# |
Apr 30th 2010, 15:11 |
ADmad |
actually no |
# |
Apr 30th 2010, 15:11 |
ADmad |
right it doesnt fail when it should |
# |
Apr 30th 2010, 15:10 |
ADmad |
checking |
# |
Apr 30th 2010, 15:10 |
jose_zap |
well it does not fail in my box |
# |
Apr 30th 2010, 15:10 |
jose_zap |
it should fail, right? |
# |
Apr 30th 2010, 15:10 |
jose_zap |
ADmad: try this, in the test you just have made... change allowEmpty => true for allowEmpty => false |
# |
Apr 30th 2010, 15:09 |
jose_zap |
ok, fine |
# |
Apr 30th 2010, 15:09 |
jose_zap |
And I'm not that sure becasue debugging the requiredFiled() method I have found some weird things |
# |
Apr 30th 2010, 15:09 |
ADmad |
i already closed it. We can reopen if needed :) |
# |
Apr 30th 2010, 15:08 |
jose_zap |
I want to be 100% sure |
# |
Apr 30th 2010, 15:08 |
jose_zap |
haha |
# |
Apr 30th 2010, 15:08 |
jose_zap |
I'm still not convinced |
# |
Apr 30th 2010, 15:04 |
ADmad |
ok so good to close the ticket ? |
# |
Apr 30th 2010, 15:03 |
jose_zap |
it was the id that was failing |
# |
Apr 30th 2010, 15:03 |
jose_zap |
it passes |
# |
Apr 30th 2010, 15:03 |
jose_zap |
ADmad: my bad too |
# |
Apr 30th 2010, 14:57 |
jose_zap |
ok |
# |
Apr 30th 2010, 14:57 |
ADmad |
*div tag class |
# |
Apr 30th 2010, 14:57 |
ADmad |
jose_zap: make sure you test case is failing for div tag and not something else |
# |
Apr 30th 2010, 14:53 |
ADmad |
hehe |
# |
Apr 30th 2010, 14:53 |
jose_zap |
and it does pass |
# |
Apr 30th 2010, 14:53 |
jose_zap |
Your test case is exactly the same |
# |
Apr 30th 2010, 14:53 |
jose_zap |
I set up the case in one of my apps |
# |
Apr 30th 2010, 14:53 |
jose_zap |
ADmad: that is weird |
# |
Apr 30th 2010, 14:48 |
ADmad |
ok np |
# |
Apr 30th 2010, 14:47 |
jose_zap |
let me clean it up a bit |
# |
Apr 30th 2010, 14:47 |
ADmad |
jose_zap: ok lets see it :) |
# |
Apr 30th 2010, 14:47 |
jose_zap |
no, it does not |
# |
Apr 30th 2010, 14:46 |
ADmad |
does not pass ? |
# |
Apr 30th 2010, 14:46 |
jose_zap |
do not close it |
# |
Apr 30th 2010, 14:46 |
jose_zap |
it doe not pass |
# |
Apr 30th 2010, 14:46 |
jose_zap |
ADmad: I did it |
# |
Apr 30th 2010, 14:46 |
ADmad |
i am closign the ticket as works for me and telling him to reopen if he can come up with a failing test case |
# |
Apr 30th 2010, 14:45 |
ADmad |
i commited that test case. |
# |
Apr 30th 2010, 14:45 |
ADmad |
none that either of us can find :) |