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
1 changed files with 7 additions and 1 deletions

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') {