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

Wrap wlang test in a rescue clause.

This commit is contained in:
Bernard Lambeau 2012-06-12 12:51:34 +02:00
parent 46f2547cf4
commit 31155b577c

View file

@ -1,4 +1,6 @@
require File.expand_path('../helper', __FILE__) require File.expand_path('../helper', __FILE__)
begin
require 'wlang' require 'wlang'
class WLangTest < Test::Unit::TestCase class WLangTest < Test::Unit::TestCase
@ -62,3 +64,7 @@ class WLangTest < Test::Unit::TestCase
end end
end end
rescue LoadError
warn "#{$!.to_s}: skipping wlang tests"
end