Skip to content

Commit

Permalink
Try skipping blowfish tests if hashes are wrong.
Browse files Browse the repository at this point in the history
Another attempt at fixing failing tests on travisci.
  • Loading branch information
markstory committed Sep 27, 2012
1 parent 8bbb1f1 commit ea784f6
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -51,6 +51,9 @@ public function setUp() {
$User = ClassRegistry::init('User');
$User->updateAll(array('password' => $User->getDataSource()->value($password)));
$this->response = $this->getMock('CakeResponse');

$hash = Security::hash('password', 'blowfish');
$this->skipIf(strpos($hash, '$2a$') === false, 'Skipping blowfish tests as hashing is not working');
}

/**
Expand Down

0 comments on commit ea784f6

Please sign in to comment.