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

Helper test fails because of hard-coded base url
This commit is contained in:
ADmad 2012-02-07 22:11:55 -08:00
commit 59ff5146be

View file

@ -605,13 +605,13 @@ class HelperTest extends CakeTestCase {
), ),
array('fullBase' => true) 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/')); $result = $this->Helper->assetUrl('foo.jpg', array('pathPrefix' => 'img/'));
$this->assertEquals('img/foo.jpg', $result); $this->assertEquals('img/foo.jpg', $result);
$result = $this->Helper->assetUrl('foo.jpg', array('fullBase' => true)); $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'); Configure::write('Asset.timestamp', 'force');