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
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,6 @@
require File.expand_path('../helper', __FILE__)
begin
require 'wlang'
class WLangTest < Test::Unit::TestCase
@ -61,4 +63,8 @@ class WLangTest < Test::Unit::TestCase
assert_body "WLang Layout!\nHello World"
end
end
end
rescue LoadError
warn "#{$!.to_s}: skipping wlang tests"
end