only check the default template path is correct

this prevents a misleading error if you've more than one bake template installed
This commit is contained in:
AD7six 2011-01-08 14:02:05 +01:00
parent 37b98ff1a6
commit e024b6b43b

View file

@ -88,7 +88,7 @@ class TemplateTaskTest extends CakeTestCase {
public function testFindingInstalledThemesForBake() {
$consoleLibs = CAKE . 'console' . DS;
$this->Task->initialize();
$this->assertEqual($this->Task->templatePaths, array('default' => $consoleLibs . 'templates' . DS . 'default' . DS));
$this->assertEqual($this->Task->templatePaths['default'], $consoleLibs . 'templates' . DS . 'default' . DS);
}
/**
@ -161,4 +161,4 @@ class TemplateTaskTest extends CakeTestCase {
$result = $this->Task->generate('classes', 'fixture');
$this->assertPattern('/ArticleFixture extends CakeTestFixture/', $result);
}
}
}