1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Merge pull request #894 from jeremyevans/execjs-unavailable

Skip coffee test instead of exiting if execjs runtime is not available
This commit is contained in:
Konstantin Haase 2014-07-01 16:51:34 +02:00
commit 95ffc9db6a

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