Skip to main content


The department is: DeprecatedChefSpecPlatform

The full name of the cop is: Chef/Deprecations/DeprecatedChefSpecPlatform

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Use currently supported platforms in ChefSpec listed at Fauxhai / ChefSpec will perform fuzzy matching on platform version values so it is always best to be less specific ie. 10 instead of 10.3


let(:chef_run) { ‘ubuntu’, version: ‘14.04’) }

## Configurable attributes

<th>Default value</th>
<th>Configurable values</th>
<td style="text-align:center">Version Added</td>
<td style="text-align:center">5.20.0</td>
<td style="text-align:center">String</td>
<tr><td style="text-align:center">Include</td>
<td style="text-align:center"><ul>
<td style="text-align:center">Array</td>

Was this page helpful?


Search Results