Browse Source

Hmm, fix some typos and update tests.

master
Aaron Hicks 6 years ago
parent
commit
b9cd8dfe64
2 changed files with 6 additions and 2 deletions
  1. 4
    2
      manifests/install.pp
  2. 2
    0
      spec/classes/install_spec.rb

+ 4
- 2
manifests/install.pp View File

@@ -1,13 +1,15 @@
class gpg::install {

include gpg::params

package{$gpg::params::package:
ensure => installed
}

package { $gpg::params::gpgme_package:
ensure => 'installed',
provider => $gpg::params::pgme_provider,
require => Package[$gpg::params::package]
provider => $gpg::params::gpgme_provider,
require => Package[$gpg::params::gpgme_package]
}

}

+ 2
- 0
spec/classes/install_spec.rb View File

@@ -7,6 +7,7 @@ describe 'gpg::install', :type => :class do
:osfamily => 'Debian'
}
end
it { should include_class("gpg::params")}
it { should contain_package("gnupg") }
it { should contain_package("gpgme") }
end
@@ -17,6 +18,7 @@ describe 'gpg::install', :type => :class do
:osfamily => 'RedHat'
}
end
it { should include_class("gpg::params")}
it { should contain_package("gnupg") }
it { should contain_package("gpgme") }
end

Loading…
Cancel
Save