public function testCustomValidationCriteria()
{
$validates = array('title' => 'A custom message here for empty titles.', 'email' => array(array('notEmpty', 'message' => 'email is empty.')));
$post = MockPostForValidates::create(array('title' => 'custom validation', 'email' => 'asdf'));
$result = $post->validates(array('rules' => $validates));
$this->assertTrue($result);
$this->assertIdentical(array(), $post->errors());
}