apt_update 'update' if platform_family?('debian')

include_recipe 'perl::default'

unless platform?('windows')
  include_recipe 'build-essential::default' # required to compile modules

  cpan_module 'Test::MockModule' do
    version '>= 0.05'
    action [:install]
  end

  cpan_module 'Test::MockModule' do
    action [:uninstall]
  end

  # cpan_module 'Test::MockModule' do
  #   version '>= 0.05'
  #   action [:install]
  # end
end

apt_update 'update'

include_recipe 'perl::default'

unless platform?('windows')
  include_recipe 'build-essential::default' # required to compile modules

  cpan_module 'Install test module' do
    module 'Test::MockModule'
    version '>= 0.05'
    action [:install]
  end

  cpan_module 'Uninstall test module' do
    module 'Test::MockModule'
    action [:uninstall]
  end

  # cpan_module 'Test::MockModule' do
  #   version '>= 0.05'
  #   action [:install]
  # end
end

Resolve resource cloning in the test cookbook
Resolve resource cloning in the test cookbook

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
