OSDN Git Service

combine similar custom taxonomy tests
authorDylan Kuhn <dylan.k.kuhn@gmail.com>
Sat, 25 May 2013 01:22:52 +0000 (18:22 -0700)
committerDylan Kuhn <dylan.k.kuhn@gmail.com>
Sat, 25 May 2013 01:22:52 +0000 (18:22 -0700)
features/scaffold.feature

index cebd1ff..8449990 100644 (file)
@@ -37,33 +37,23 @@ Feature: Wordpress code scaffolding
 
   # Test for all flags but --label, --theme, --plugin and --raw
   @tax
-  Scenario: Scaffold a Custom Taxonomy and attach it to a CPT zombie that is prefixed and has a text domain
+  Scenario: Scaffold a Custom Taxonomy and attach it to CPTs including one that is prefixed and has a text domain
     Given a WP install
 
-    When I run `wp scaffold taxonomy zombie-speed --post_types="prefix-zombie" --textdomain=zombieland`
+    When I run `wp scaffold taxonomy zombie-speed --post_types="prefix-zombie,wraith" --textdomain=zombieland`
     Then STDOUT should contain:
       """
       __( 'Zombie speeds'
       """
     And STDOUT should contain:
       """
-      array( 'prefix-zombie' )
+      array( 'prefix-zombie', 'wraith' )
       """
     And STDOUT should contain:
       """
       __( 'Zombie speeds', 'zombieland'
       """
   
-  @tax 
-  Scenario: Scaffold a Custom Taxonomy and attach it to multiple post types
-    Given a WP install
-
-    When I run `wp scaffold taxonomy perambulation-speed --post_types="zombie,wraith" --textdomain=zombieland`
-        Then STDOUT should contain:
-               """
-               array( 'zombie', 'wraith' )
-               """
-
   @tax
   Scenario: Scaffold a Custom Taxonomy with label "Speed"
     Given a WP install