Permalink
Browse files

Adding libs dir generation to PluginTask. Baked plugins now come with…

… a libs dir.
  • Loading branch information...
1 parent 6f2ec8d commit 1e7c2bbfdee15cf5871a3a5d2f3a397af3d5fe8d @markstory markstory committed Oct 28, 2009
Showing with 2 additions and 0 deletions.
  1. +1 −0 cake/console/libs/tasks/plugin.php
  2. +1 −0 cake/tests/cases/console/libs/tasks/plugin.test.php
@@ -145,6 +145,7 @@ function bake($plugin) {
'models' . DS . 'behaviors',
'models' . DS . 'datasources',
'controllers' . DS . 'components',
+ 'libs',
'views' . DS . 'helpers',
'tests' . DS . 'cases' . DS . 'components',
'tests' . DS . 'cases' . DS . 'helpers',
@@ -183,6 +183,7 @@ function testBakeFoldersAndFiles() {
$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells'), 'No vendors shells dir %s');
$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks'), 'No vendors shells tasks dir %s');
$this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks' . DS . 'empty'), 'No empty file %s');
+ $this->assertTrue(is_dir($path . DS . 'libs'), 'No libs dir %s');
$file = $path . DS . 'bake_test_plugin_app_controller.php';
$this->Task->expectAt(0, 'createFile', array($file, '*'), 'No AppController %s');

0 comments on commit 1e7c2bb

Please sign in to comment.