Skip to content

Commit

Permalink
Fixing more tests related to changes on model validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 21, 2011
1 parent d788301 commit bb8c41d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -670,7 +670,7 @@ function testValidation() {
));
$TestModel->create();
$this->assertFalse($TestModel->save($data));
$this->assertEqual($TestModel->validationErrors['title'], 'This field cannot be left blank');
$this->assertEqual($TestModel->validationErrors['title'], array('This field cannot be left blank'));

$TestModel->locale = 'eng';
$TestModel->validate['title'] = '/Only this title/';
Expand Down

0 comments on commit bb8c41d

Please sign in to comment.