Skip to content

Commit

Permalink
Fix the "testAssetUrlNoRewrite" test
Browse files Browse the repository at this point in the history
When running the test in the browser from somewhere other than
http://localhost (e.g. http://foo.dev), the test was failing.
  • Loading branch information
ataylor32 committed Jul 14, 2013
1 parent d40c737 commit 5a6f125
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Test/Case/View/HelperTest.php
Expand Up @@ -674,7 +674,8 @@ public function testAssetUrlNoRewrite() {
'here' => '/cake_dev/index.php/tasks',
));
$result = $this->Helper->assetUrl('img/cake.icon.png', array('fullBase' => true));
$this->assertEquals('http://localhost/cake_dev/app/webroot/img/cake.icon.png', $result);
$expected = FULL_BASE_URL . '/cake_dev/app/webroot/img/cake.icon.png';
$this->assertEquals($expected, $result);
}

/**
Expand Down

0 comments on commit 5a6f125

Please sign in to comment.