Browse Source

updating tests...

master
Aaron Hicks 6 years ago
parent
commit
4bf9f8a93d
2 changed files with 23 additions and 4 deletions
  1. 2
    4
      spec/classes/gpg_spec.rb
  2. 21
    0
      spec/classes/install_spec.rb

+ 2
- 4
spec/classes/gpg_spec.rb View File

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

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

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

@@ -0,0 +1,21 @@
require 'spec_helper'

describe 'gpg::install', :type => :class do
context "on a Debian OS" do
let :facts do
{
:osfamily => 'Debian'
}
end
it { should contain_package("gnupg") }
end

context "on a RedHat OS" do
let :facts do
{
:osfamily => 'RedHat'
}
end
it { should contain_package("gnupg") }
end
end

Loading…
Cancel
Save