OSDN Git Service

Update post.feature to test new `--fields` argument
authorDaniel Bachhuber <d@danielbachhuber.com>
Wed, 8 May 2013 23:06:19 +0000 (16:06 -0700)
committerDaniel Bachhuber <d@danielbachhuber.com>
Wed, 8 May 2013 23:06:19 +0000 (16:06 -0700)
features/post.feature

index 3fa02b1..731184f 100644 (file)
@@ -77,11 +77,11 @@ Feature: Manage WordPress posts
     Then it should run without errors
     And STDOUT should match '%d'
 
-    When I run `wp post list --post_type='post' --format=csv`
+    When I run `wp post list --post_type='post' --fields=post_title,post_name,post_status --format=csv`
     Then it should run without errors
     And STDOUT should be CSV containing:
       """
-      post_title,post_name
-      "Publish post",publish-post
-      "Draft post",
+      post_title,post_name,post_status
+      "Publish post",publish-post,publish
+      "Draft post",,draft
       """