public function testValidateWithRequiredFalse()
{
$post = MockPost::create(array('title' => 'post title'));
$post->validates(array('rules' => array('title' => 'A custom message here for empty titles.', 'email' => array(array('notEmpty', 'message' => 'email is empty.', 'required' => false)))));
$this->assertEmpty($post->errors());
}