OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce4dec
)
Update post.feature to test new `--fields` argument
author
Daniel Bachhuber
<d@danielbachhuber.com>
Wed, 8 May 2013 23:06:19 +0000
(16:06 -0700)
committer
Daniel Bachhuber
<d@danielbachhuber.com>
Wed, 8 May 2013 23:06:19 +0000
(16:06 -0700)
features/post.feature
patch
|
blob
|
history
diff --git
a/features/post.feature
b/features/post.feature
index
3fa02b1
..
731184f
100644
(file)
--- a/
features/post.feature
+++ b/
features/post.feature
@@
-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' --f
ields=post_title,post_name,post_status --f
ormat=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
"""