Permalink
Browse files

Wrap wlang test in a rescue clause.

  • Loading branch information...
1 parent 46f2547 commit 31155b577cd67f1a502f9c5bf00c67c3861439c3 @blambeau blambeau committed Jun 12, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 test/wlang_test.rb
View
8 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 @@ def who; "world"; end
assert_body "WLang Layout!\nHello World"
end
-end
+end
+
+rescue LoadError
+ warn "#{$!.to_s}: skipping wlang tests"
+end

0 comments on commit 31155b5

Please sign in to comment.