Browse Source

pass parameters for spec test

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 (
2 2
   $package
3 3
 ){
4 4
   package{$package:
5
-    ensure => installed
5
+    ensure => installed,
6 6
   }
7 7
 }

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

@@ -7,6 +7,7 @@ describe 'gpg::install', :type => :class do
7 7
         :osfamily   => 'Debian'
8 8
       }
9 9
     end
10
+    let(:params) { {:package => gnupg} }
10 11
     it { should contain_package("gnupg") }
11 12
   end
12 13
 
@@ -16,6 +17,7 @@ describe 'gpg::install', :type => :class do
16 17
         :osfamily   => 'RedHat'
17 18
       }
18 19
     end
20
+    let(:params) { {:package => gnupg} }
19 21
     it { should contain_package("gnupg") }
20 22
   end
21 23
 end

Loading…
Cancel
Save