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:
parent
46f2547cf4
commit
31155b577c
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue