Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 90d41a9

Browse files
author
Peter Souter
committed
New spec to catch JDK-8027686
1 parent fb5ad7b commit 90d41a9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/classes/java_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,18 @@
3232
:require => 'Package[java]'
3333
})
3434
end
35+
36+
context 'fails when java version has Yosemite relevant bug' do
37+
let(:facts) { default_test_facts.merge({ :macosx_productversion_major => '10.10' }) }
38+
let(:params) {
39+
{
40+
:update_version => '51',
41+
}
42+
}
43+
it do
44+
expect {
45+
should contain_class('java')
46+
}.to raise_error(/Yosemite Requires Java 7 with a patch level >= 71 \(Bug JDK\-8027686\)/)
47+
end
48+
end
3549
end

0 commit comments

Comments
 (0)