diff --git a/spec/unit/linux_spec.rb b/spec/unit/linux_spec.rb index e6c7c63..043b58b 100755 --- a/spec/unit/linux_spec.rb +++ b/spec/unit/linux_spec.rb @@ -4,7 +4,7 @@ context 'linux' do context 'set_java_home' do let(:chef_run) do - ChefSpec::SoloRunner.new(platform: 'debian', version: '8.8') do |node| + ChefSpec::SoloRunner.new(platform: 'debian', version: '8.11') do |node| node.override['java_se']['java_home'] = '/opt/java' end.converge(described_recipe) end @@ -30,7 +30,7 @@ context 'set_java_home_environment' do let(:chef_run) do - ChefSpec::SoloRunner.new(platform: 'debian', version: '8.8') do |node| + ChefSpec::SoloRunner.new(platform: 'debian', version: '8.11') do |node| node.override['java_se']['java_home'] = '/opt/java' node.override['java_se']['set_etc_environment'] = true end.converge(described_recipe) @@ -121,7 +121,7 @@ context 'default_java_symlink' do let(:chef_run) do - ChefSpec::SoloRunner.new(platform: 'debian', version: '8.8').converge(described_recipe) + ChefSpec::SoloRunner.new(platform: 'debian', version: '8.11').converge(described_recipe) end it 'symlinks /usr/lib/jvm/default-java' do diff --git a/spec/unit/macosx_spec.rb b/spec/unit/macosx_spec.rb index 069f19f..286b5e1 100755 --- a/spec/unit/macosx_spec.rb +++ b/spec/unit/macosx_spec.rb @@ -6,7 +6,7 @@ let(:shellout) { double(exitstatus: 1, run_command: nil, error!: nil, stdout: '') } let(:chef_run) do - ChefSpec::SoloRunner.new(file_cache_path: CACHE, platform: 'mac_os_x', version: '10.10') do + ChefSpec::SoloRunner.new(file_cache_path: CACHE, platform: 'mac_os_x', version: '10.14') do allow(Mixlib::ShellOut).to receive(:new).and_return(shellout) end.converge(described_recipe) end diff --git a/spec/unit/skip_spec.rb b/spec/unit/skip_spec.rb index 4dbbd91..b3b8a5b 100755 --- a/spec/unit/skip_spec.rb +++ b/spec/unit/skip_spec.rb @@ -3,7 +3,7 @@ describe 'java_se::default' do context 'skip install' do let(:chef_run) do - ChefSpec::SoloRunner.new(platform: 'debian', version: '8.8') do |node| + ChefSpec::SoloRunner.new(platform: 'debian', version: '8.11') do |node| node.override['java_se']['skip'] = true end.converge(described_recipe) end diff --git a/spec/unit/windows_spec.rb b/spec/unit/windows_spec.rb index 9982994..af939c6 100755 --- a/spec/unit/windows_spec.rb +++ b/spec/unit/windows_spec.rb @@ -3,7 +3,7 @@ describe 'java_se::default' do context 'windows' do let(:chef_run) do - ChefSpec::SoloRunner.new(platform: 'windows', version: '2008R2') do |node| + ChefSpec::SoloRunner.new(platform: 'windows', version: '2012R2') do |node| allow(::File).to receive(:exist?).and_call_original allow(::File).to receive(:exist?).with("#{ENV['SYSTEMDRIVE']}\\java\\jdk").and_return(false) ENV['SYSTEMDRIVE'] = 'C:'