From 2002e09387f1405b9f11985ae8f9d411e9af52ea Mon Sep 17 00:00:00 2001 From: Harald Skoglund Date: Wed, 16 Apr 2014 14:20:47 +0200 Subject: [PATCH] Updated tests for darwin. --- .travis.yml | 2 +- spec/classes/client_spec.rb | 6 +++++- spec/classes/server_spec.rb | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0b0b1c0..3e7bfa2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ env: - PUPPET_VERSION=2.7.20 - PUPPET_VERSION=3.0.2 - PUPPET_VERSION=3.1.0 - - PUPPET_VERSION=3.5.1 + - PUPPET_VERSION=3.4.3 diff --git a/spec/classes/client_spec.rb b/spec/classes/client_spec.rb index c28e667..3dea98b 100644 --- a/spec/classes/client_spec.rb +++ b/spec/classes/client_spec.rb @@ -23,6 +23,10 @@ end context "operatingsystem => darwin" do let(:facts) { {:operatingsystem => 'darwin', } } - it { should contain_class('nfs::client::darwin' ) } + it do + expect { + should contain_class('nfs::server::darwin') + }.to raise_error(Puppet::Error, /NFS client is not supported on Darwin/) + end end end diff --git a/spec/classes/server_spec.rb b/spec/classes/server_spec.rb index 0b20a25..f98c0c0 100644 --- a/spec/classes/server_spec.rb +++ b/spec/classes/server_spec.rb @@ -35,7 +35,7 @@ end context "operatingsysten => darwin" do let(:facts) { {:operatingsystem => 'darwin'} } - it do + it do expect { should contain_class('nfs::server::darwin') }.to raise_error(Puppet::Error, /NFS server is not supported on Darwin/)