nwops / puppet-retrospec

The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
https://www.retrospec-puppet.com/
GNU Affero General Public License v3.0
137 stars 27 forks source link

class requirements is not coded correctly #77

Closed logicminds closed 6 years ago

logicminds commented 7 years ago

When generating tests the specification for ensure class requirements is incorrect.

Instead of:

it do
is_expected.to contain_exec('foo')
  .with({
     "that_comes_before" => "Exec['before']"
  })

end
it do
is_expected.to contain_exec('foo')
  .with({
     source => 'blah'
  })
  .that_comes_before("Exec['before']")

end