diff --git a/manifests/install/puppet_gem.pp b/manifests/install/puppet_gem.pp index 54bb717c..39887835 100644 --- a/manifests/install/puppet_gem.pp +++ b/manifests/install/puppet_gem.pp @@ -1,6 +1,5 @@ # This class links the r10k binary for Puppet FOSS 4.2 and up class r10k::install::puppet_gem { - require git if versioncmp("${::puppetversion}", '4.2.0') >= 0 { #lint:ignore:only_variable_string file { '/usr/bin/r10k': diff --git a/spec/classes/install_spec.rb b/spec/classes/install_spec.rb index ecd0c007..d834b844 100644 --- a/spec/classes/install_spec.rb +++ b/spec/classes/install_spec.rb @@ -89,7 +89,7 @@ } end - it { is_expected.to contain_class('git') } + it { is_expected.not_to contain_class('git') } it { is_expected.to contain_class('r10k::install::puppet_gem') } it do is_expected.to contain_package('r10k').with(