Skip to content

Commit

Permalink
Updating DboSource test to account for formatting of floats done in m…
Browse files Browse the repository at this point in the history
…ysql/postgresql.
  • Loading branch information
markstory committed Aug 27, 2010
1 parent 95168ce commit 123873b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/model/datasources/dbo_source.test.php
Expand Up @@ -2548,11 +2548,11 @@ function testArrayConditionsParsing() {
$this->assertEqual($result, $expected);

$result = $this->testDb->conditions(array('score BETWEEN ? AND ?' => array(90.1, 95.7)));
$expected = " WHERE `score` BETWEEN 90.1 AND 95.7";
$expected = " WHERE `score` BETWEEN 90.100000 AND 95.700000";
$this->assertEqual($result, $expected);

$result = $this->testDb->conditions(array('Post.title' => 1.1));
$expected = " WHERE `Post`.`title` = 1.1";
$expected = " WHERE `Post`.`title` = 1.100000";
$this->assertEqual($result, $expected);

$result = $this->testDb->conditions(array('Post.title' => 1.1), true, true, new Post());
Expand Down

0 comments on commit 123873b

Please sign in to comment.