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:
commit
95ffc9db6a
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue