1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Added a JRuby workaround in a test that's failing due to a JRuby bug.

This commit is contained in:
Kevin Menard 2013-10-24 15:17:51 -04:00
parent 9e1a29b9f3
commit 9b0de600be

View file

@ -54,7 +54,13 @@ Shindo.tests do
returns(nil, 'File.expand_path raises because of non-absolute path') {
ENV.delete('FOG_RC')
ENV['HOME'] = '.'
Fog.credentials_path
if RUBY_PLATFORM == 'java'
Fog::Logger.warning("Stubbing out non-absolute path credentials test due to JRuby bug: https://github.com/jruby/jruby/issues/1163")
nil
else
Fog.credentials_path
end
}
returns(nil, 'returns nil when neither FOG_RC or HOME are set') {