Skip to content
Permalink
Browse files

Fix the "testAssetUrlNoRewrite" test

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 5a6f1259e34273eae8a28cb2aa4e8a5a58547e23
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Test/Case/View/HelperTest.php
@@ -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);
}
/**

0 comments on commit 5a6f125

Please sign in to comment.
You can’t perform that action at this time.