Wrap wlang test in a rescue clause.
This commit is contained in:
parent
46f2547cf4
commit
31155b577c
|
@ -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
|
||||||
|
@ -61,4 +63,8 @@ class WLangTest < Test::Unit::TestCase
|
||||||
assert_body "WLang Layout!\nHello World"
|
assert_body "WLang Layout!\nHello World"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rescue LoadError
|
||||||
|
warn "#{$!.to_s}: skipping wlang tests"
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue