Skip coffee test instead of exiting if execjs runtime is not available

This commit is contained in:
Jeremy Evans 2014-06-25 15:56:07 -07:00
parent d52b75d8a5
commit 70ed64800c
1 changed files with 6 additions and 0 deletions

View File

@ -87,4 +87,10 @@ end
rescue LoadError
warn "#{$!.to_s}: skipping coffee tests"
rescue
if $!.class.name == 'ExecJS::RuntimeUnavailable'
warn "#{$!.to_s}: skipping coffee tests"
else
raise
end
end