dockyard/ember-validations — pull request #68 by lastobelus (2013-12-12 23:21:59+00:00)
Title: Currently, neither the work of validators nor the settling of `isValid` are asynchronous

This pull request adds failing tests that demonstrate that currently neither the work of validators nor the settling of isValid are asynchronous, and a generic harness for testing the asynchronicity of the library.

It contains three tests:

**work after validate is async**: PASSES
**settling isValid after validate is async**: FAILS
**validator work is async**: FAILS

I merged it into the branch for my [original pull request](https://github.com/dockyard/ember-validations/pull/64) which was intended to make it possible for validators to be asynchronous (necessitating that the settling of isValid be asynchronous).

In that branch, **settling isValid after validate is async** passes, and **validator work is async** still fails because the validator in the test is not asynchronous. In my original pull request I will add a test of an asynchronous validator (one that returns a promise from call). I think the pull request has to be re-opened for the new commits to show up; or I could submit a new pull request from that branch.

If your intent is that the work of **ALL** validators be asynchronous (which I think is probably not actually desirable as the validators included in the library are all lightweight and there is no benefit to making them asynchronous), that could easily be done in the `Base.validate`.