OSDN Git Service

try the --activate flag for `wp scaffold plugin` one more time
authorscribu <mail@scribu.net>
Tue, 14 May 2013 21:11:50 +0000 (00:11 +0300)
committerscribu <mail@scribu.net>
Tue, 14 May 2013 21:11:52 +0000 (00:11 +0300)
features/scaffold.feature

index e2cc2b4..c638f6c 100644 (file)
@@ -10,14 +10,13 @@ Feature: Wordpress code scaffolding
     Then STDOUT should not be empty
     And the {THEME_DIR}/zombieland/style.css file should exist
 
-  # Adding --activate to the test crashes the tests
   @plugin
   Scenario: Scaffold a plugin
     Given a WP install
     And I run `wp plugin path`
     And save STDOUT as {PLUGIN_DIR}
 
-    When I run `wp scaffold plugin zombieland --plugin_name="Welcome to Zombieland"`
+    When I run `wp scaffold plugin zombieland --plugin_name="Welcome to Zombieland" --activate`
     Then STDOUT should not be empty
     And the {PLUGIN_DIR}/zombieland/zombieland.php file should exist