Skip to content

Commit 91dd94b

Browse files
committed
Fix IBM tests - Chef cache path behavior seems to have changed and setting it is not honored.
1 parent 26b3dab commit 91dd94b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/ibm_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
end
1616

1717
it 'creates an installer.properties file' do
18-
expect(chef_run).to create_template('/var/chef/cache/installer.properties')
18+
expect(chef_run).to create_template(Chef::Config[:file_cache_path] + '/installer.properties')
1919
end
2020

2121
it 'downloads the remote jdk file' do
22-
expect(chef_run).to create_remote_file('/var/chef/cache/ibm-java.bin')
22+
expect(chef_run).to create_remote_file(Chef::Config[:file_cache_path] + '/ibm-java.bin')
2323
end
2424

2525
it 'runs the installer' do

spec/ibm_tar_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
end
1212

1313
it 'downloads the remote jdk file' do
14-
expect(chef_run).to create_remote_file('/var/chef/cache/ibm-java.tar.gz')
14+
expect(chef_run).to create_remote_file(Chef::Config[:file_cache_path] + '/ibm-java.tar.gz')
1515
end
1616

1717
it 'create java_home directory' do

0 commit comments

Comments
 (0)