aboutsummaryrefslogtreecommitdiff
path: root/spec/classes/init_spec.rb
diff options
context:
space:
mode:
authorTomas Barton <barton.tomas@gmail.com>2014-01-26 09:36:35 +0100
committerTomas Barton <barton.tomas@gmail.com>2014-01-26 18:26:34 +0100
commit78f1ff00d09d0ebf8f132e70444b9bcf030b6711 (patch)
treecc4ef1f3b2758b6097dbb66720a86d02b703476b /spec/classes/init_spec.rb
parentaee6885940cad29ff4ab7437e89c394bc1c19a46 (diff)
downloadpuppet-sshd-78f1ff00d09d0ebf8f132e70444b9bcf030b6711.tar.gz
puppet-sshd-78f1ff00d09d0ebf8f132e70444b9bcf030b6711.tar.bz2
replaces shared-lsb by puppetlabs/stdlib
Diffstat (limited to 'spec/classes/init_spec.rb')
-rw-r--r--spec/classes/init_spec.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb
new file mode 100644
index 0000000..c1d9b6f
--- /dev/null
+++ b/spec/classes/init_spec.rb
@@ -0,0 +1,24 @@
+require 'spec_helper'
+
+describe 'sshd' do
+
+
+ shared_examples "a Linux OS" do
+ it { should compile.with_all_deps }
+ it { should contain_class('sshd') }
+ it { should contain_class('sshd::client') }
+ end
+
+ context "Debian OS" do
+ let :facts do
+ {
+ :operatingsystem => 'Debian',
+ :osfamily => 'Debian',
+ :lsbdistcodename => 'wheezy',
+ }
+ end
+ it_behaves_like "a Linux OS"
+ it { should contain_package('lsb-release') }
+ end
+
+end \ No newline at end of file