OSDN Git Service

Added child-theme behat test
authorjmslbam <jmslbam@gmail.com>
Sun, 12 May 2013 22:29:45 +0000 (00:29 +0200)
committerjmslbam <jmslbam@gmail.com>
Sun, 12 May 2013 22:29:45 +0000 (00:29 +0200)
features/scaffold.feature

index acd875f..10b8763 100644 (file)
@@ -1,5 +1,18 @@
 Feature: Wordpress code scaffolding
 
+  @theme
+  Scenario: Scaffold a child theme
+    Given a WP install
+
+    When I run `wp scaffold child-theme zombieland --parent_theme=umbrella`
+    Then it should run without errors
+    
+    When I run `wp theme path`
+    Then it should run without errors
+    And save STDOUT as {THEME_PATH}
+    And the {THEME_PATH}/zombieland/style.css file should exist
+    
+
   Scenario: Scaffold a Custom Taxonomy and Custom Post Type and write it to active theme
     Given a WP install