Skip to content

Commit

Permalink
Updated tests for darwin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald Skoglund committed Apr 16, 2014
1 parent a3d9d13 commit 2002e09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion spec/classes/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion spec/classes/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down

0 comments on commit 2002e09

Please sign in to comment.