Browse Source

pass parameters for spec test

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

+ 1
- 1
manifests/install.pp View File

@@ -2,6 +2,6 @@ class gpg::install (
$package
){
package{$package:
ensure => installed
ensure => installed,
}
}

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

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

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

Loading…
Cancel
Save