OSDN Git Service

Update term.feature to make use of `--fields` argument
authorDaniel Bachhuber <d@danielbachhuber.com>
Wed, 8 May 2013 23:23:08 +0000 (16:23 -0700)
committerDaniel Bachhuber <d@danielbachhuber.com>
Wed, 8 May 2013 23:23:08 +0000 (16:23 -0700)
features/term.feature

index 47a4219..0c6af7e 100644 (file)
@@ -17,6 +17,14 @@ Feature: Manage WordPress terms
       [{"name":"Test term","slug":"test","description":"This is a test term","parent":"0","count":"0"}]
       """
 
+    When I run `wp term list post_tag --fields=name,slug --format=csv`
+    Then it should run without errors
+    And STDOUT should be CSV containing:
+      """
+      name,slug
+      "Test term",test
+      """
+
   Scenario: Creating/deleting a term
     Given a WP install