Browse Source

Checking to see if the package is visible to the gpg_spec tests

Aaron Hicks 6 years ago
parent
commit
e49f5e7020
2 changed files with 3 additions and 1 deletions
  1. 1
    1
      manifests/install.pp
  2. 2
    0
      spec/classes/gpg_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/gpg_spec.rb View File

@@ -8,6 +8,7 @@ describe 'gpg', :type => :class do
8 8
       }
9 9
     end
10 10
     it { should create_class("gpg::install") }
11
+    it { should contain_package("gnupg") }
11 12
   end
12 13
 
13 14
   context "on a RedHat OS" do
@@ -17,5 +18,6 @@ describe 'gpg', :type => :class do
17 18
       }
18 19
     end
19 20
     it { should create_class("gpg::install") }
21
+    it { should contain_package("gnupg") }
20 22
   end
21 23
 end

Loading…
Cancel
Save