From 31155b577cd67f1a502f9c5bf00c67c3861439c3 Mon Sep 17 00:00:00 2001 From: Bernard Lambeau Date: Tue, 12 Jun 2012 12:51:34 +0200 Subject: [PATCH] Wrap wlang test in a rescue clause. --- test/wlang_test.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/wlang_test.rb b/test/wlang_test.rb index 8baf5400..9b3e4467 100644 --- a/test/wlang_test.rb +++ b/test/wlang_test.rb @@ -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 \ No newline at end of file +end + +rescue LoadError + warn "#{$!.to_s}: skipping wlang tests" +end