Permalink
Browse files

Merge pull request #469 from tigrang/helper-test-patch

Helper test fails because of hard-coded base url
  • Loading branch information...
2 parents b6f99bc + 0789993 commit 59ff5146be8961230f8988c4ffb36e0c4a7049d8 @ADmad ADmad committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/View/HelperTest.php
@@ -605,13 +605,13 @@ public function testAssetUrl() {
),
array('fullBase' => true)
);
- $this->assertEquals('http://localhost/js/post.js', $result);
+ $this->assertEquals(FULL_BASE_URL . '/js/post.js', $result);
$result = $this->Helper->assetUrl('foo.jpg', array('pathPrefix' => 'img/'));
$this->assertEquals('img/foo.jpg', $result);
$result = $this->Helper->assetUrl('foo.jpg', array('fullBase' => true));
- $this->assertEquals('http://localhost/foo.jpg', $result);
+ $this->assertEquals(FULL_BASE_URL . '/foo.jpg', $result);
Configure::write('Asset.timestamp', 'force');

0 comments on commit 59ff514

Please sign in to comment.