Skip to content

Commit 66179ee

Browse files
author
Govind Kumar
committed
Used hard-code number of posts.
1 parent 916be42 commit 66179ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

features/post-generate.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,15 @@ Feature: Generate new WordPress posts
4444

4545
Scenario: Generating post and outputting title and name
4646
When I run `wp post generate --count=3 --post_title=Howdy!`
47-
When I run `wp post list --format=count`
48-
And save STDOUT as {POST_COUNT}
49-
And I run `wp post list --field=post_title --posts_per_page={POST_COUNT}`
47+
And I run `wp post list --field=post_title --posts_per_page=3`
5048
Then STDOUT should contain:
5149
"""
5250
Howdy!
5351
Howdy! 2
5452
Howdy! 3
5553
"""
5654
And STDERR should be empty
57-
And I run `wp post list --field=post_name --posts_per_page={POST_COUNT}`
55+
And I run `wp post list --field=post_name --posts_per_page=3`
5856
Then STDOUT should contain:
5957
"""
6058
howdy

0 commit comments

Comments
 (0)