Permalink
Browse files

CONSOLE_LIBS isn't an absolute path

Adding app vendor folders

Correcting plugin test to match changes to the task
  • Loading branch information...
1 parent 803d19c commit d54369e29ef577c76137a8eb3ef62f7b66cbf67e @AD7six AD7six committed Jul 29, 2009
@@ -129,7 +129,6 @@ function bake($plugin) {
if (count($pathOptions) > 1) {
$this->findPath($pathOptions);
}
-
$this->hr();
$this->out(sprintf(__("Plugin Name: %s", true), $plugin));
$this->out(sprintf(__("Plugin Directory: %s", true), $this->path . $pluginPath));
@@ -140,7 +139,7 @@ function bake($plugin) {
if (strtolower($looksGood) == 'y') {
$verbose = $this->in(__('Do you want verbose output?', true), array('y', 'n'), 'n');
- $skel = dirname(CONSOLE_LIBS) . DS . 'templates' . DS . 'skel';
+ $skel = CAKE_CORE_INCLUDE_PATH . DS . dirname(CONSOLE_LIBS) . DS . 'templates' . DS . 'skel';
$Skel =& new Folder($skel);
$Folder =& new Folder($this->path . $pluginPath);
$allFiles = $Skel->findRecursive();
@@ -178,7 +178,8 @@ function testBakeFoldersAndFiles() {
$this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'img' . DS . 'empty'), 'No empty file %s');
$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells'), 'No vendors shells dir %s');
- $this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'shells' . DS . 'empty'), 'No empty file %s');
+ $this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks'), 'No vendors shells dir %s');
+ $this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks' . DS . 'empty'), 'No empty file %s');
$file = $path . DS . 'bake_test_plugin_app_controller.php';
$this->Task->expectAt(0, 'createFile', array($file, '*'), 'No AppController %s');

0 comments on commit d54369e

Please sign in to comment.