Skip to content

Commit 12a3ce8

Browse files
Copilotswissspidy
andauthored
Fix Windows README Behat failures by using package-readme fixtures
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent d64f1d7 commit 12a3ce8

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

features/scaffold-package-readme.feature

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,17 @@ Feature: Scaffold a README.md file for an existing package
9494
Scenario: Scaffold a README.md requiring a nightly build
9595
Given an empty directory
9696

97-
When I run `wp scaffold package wp-cli/foo --dir=foo --require_wp_cli='>=0.24.0-alpha' --skip-install`
97+
And a foo/composer.json file:
98+
"""
99+
{
100+
"name": "wp-cli/foo",
101+
"require": {
102+
"wp-cli/wp-cli": ">=0.24.0-alpha"
103+
}
104+
}
105+
"""
106+
107+
When I run `wp scaffold package-readme foo`
98108
Then STDOUT should contain:
99109
"""
100110
Success: Created package readme.
@@ -103,7 +113,7 @@ Feature: Scaffold a README.md file for an existing package
103113
"""
104114
"require": {
105115
"wp-cli/wp-cli": ">=0.24.0-alpha"
106-
},
116+
}
107117
"""
108118
And the foo/README.md file should exist
109119
And the foo/README.md file should contain:
@@ -113,7 +123,17 @@ Feature: Scaffold a README.md file for an existing package
113123
Scenario: Scaffold a README.md requiring the latest stable release
114124
Given an empty directory
115125

116-
When I run `wp scaffold package wp-cli/foo --dir=foo --require_wp_cli='*' --skip-install`
126+
And a foo/composer.json file:
127+
"""
128+
{
129+
"name": "wp-cli/foo",
130+
"require": {
131+
"wp-cli/wp-cli": "*"
132+
}
133+
}
134+
"""
135+
136+
When I run `wp scaffold package-readme foo`
117137
Then STDOUT should contain:
118138
"""
119139
Success: Created package readme.
@@ -122,7 +142,7 @@ Feature: Scaffold a README.md file for an existing package
122142
"""
123143
"require": {
124144
"wp-cli/wp-cli": "*"
125-
},
145+
}
126146
"""
127147
And the foo/README.md file should exist
128148
And the foo/README.md file should contain:

0 commit comments

Comments
 (0)