Skip to content

Commit 2af32bf

Browse files
authored
Merge pull request #122 from wp-cli/fix-gherkin-issues
Fix Gherkin lint issues
2 parents 2eb9ad1 + 7e4fa2d commit 2af32bf

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

features/export.feature

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Feature: Export content.
5959
"""
6060

6161
When I run `wp export --post_type=page --post_status=draft`
62-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
62+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
6363

6464
When I run `wp site empty --yes`
6565
Then STDOUT should not be empty
@@ -100,7 +100,7 @@ Feature: Export content.
100100
"""
101101

102102
When I run `wp export --post_type=page,post`
103-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
103+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
104104

105105
When I run `wp site empty --yes`
106106
Then STDOUT should not be empty
@@ -175,8 +175,7 @@ Feature: Export content.
175175
"""
176176

177177
When I run `wp export --post__in={POST_ID}`
178-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
179-
178+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
180179
And the {EXPORT_FILE} file should not contain:
181180
"""
182181
<wp:post_id>{ATTACHMENT_ID}</wp:post_id>
@@ -223,7 +222,7 @@ Feature: Export content.
223222
And save STDOUT as {POST_ID_TWO}
224223

225224
When I run `wp export --post__in="{POST_ID} {POST_ID_TWO}"`
226-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
225+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
227226

228227
When I run `wp site empty --yes`
229228
Then STDOUT should not be empty
@@ -256,7 +255,7 @@ Feature: Export content.
256255
And save STDOUT as {POST_ID_TWO}
257256

258257
When I run `wp export --post__in="{POST_ID},{POST_ID_TWO}"`
259-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
258+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
260259

261260
When I run `wp site empty --yes`
262261
Then STDOUT should not be empty
@@ -291,7 +290,7 @@ Feature: Export content.
291290
"""
292291

293292
When I run `wp export --post_type=post --start_date=2013-08-02 --end_date=2013-08-02`
294-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
293+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
295294

296295
When I run `wp site empty --yes`
297296
Then STDOUT should not be empty
@@ -522,7 +521,7 @@ Feature: Export content.
522521
"""
523522

524523
When I run `wp export --start_id=6`
525-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
524+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
526525

527526
When I run `wp site empty --yes`
528527
Then STDOUT should not be empty
@@ -557,7 +556,7 @@ Feature: Export content.
557556
"""
558557

559558
When I run `wp export --post_type__not_in=post`
560-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
559+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
561560

562561
When I run `wp site empty --yes`
563562
Then STDOUT should not be empty
@@ -585,7 +584,7 @@ Feature: Export content.
585584
"""
586585

587586
When I run `wp export --post_type__not_in=post,page`
588-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
587+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
589588

590589
When I run `wp site empty --yes`
591590
Then STDOUT should not be empty
@@ -662,7 +661,7 @@ Feature: Export content.
662661
"""
663662

664663
When I run `wp export --skip_comments`
665-
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
664+
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
666665

667666
When I run `wp site empty --yes`
668667
Then STDOUT should not be empty

0 commit comments

Comments
 (0)