Skip to content

Commit 6b0365c

Browse files
committed
Add test (could do with a HOME variable).
1 parent 0b16a6d commit 6b0365c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

features/scaffold-package.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,13 @@ Feature: Scaffold WP-CLI commands
214214
"""
215215
Success: Uninstalled package.
216216
"""
217+
218+
Scenario: Use tilde for HOME in package directory path
219+
Given an empty directory
220+
221+
When I run `wp scaffold package bar/foo --dir=~/foo --force --skip-tests --skip-readme`
222+
Then STDOUT should contain:
223+
"""
224+
Success: Package installed.
225+
"""
226+
And the /tmp/wp-cli-home/foo directory should exist

0 commit comments

Comments
 (0)