Skip to content

Commit

Permalink
tests for #13
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Feb 9, 2015
1 parent 6ba20f2 commit 023e234
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/classes/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,20 @@
}) }
end

context 'fail when no packge provided' do
let(:facts) {{
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:lsbdistcodename => 'trusty',
}}

let(:params) { {
:install_java => true,
} }

it { expect {
should compile
}.to raise_error(/Java installation is required/) }
end

end

0 comments on commit 023e234

Please sign in to comment.