Skip to content
This repository
Browse code

Wrap wlang test in a rescue clause.

  • Loading branch information...
commit 31155b577cd67f1a502f9c5bf00c67c3861439c3 1 parent 46f2547
Bernard Lambeau authored June 12, 2012

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  test/wlang_test.rb
8  test/wlang_test.rb
... ...
@@ -1,4 +1,6 @@
1 1
 require File.expand_path('../helper', __FILE__)
  2
+
  3
+begin
2 4
 require 'wlang'
3 5
 
4 6
 class WLangTest < Test::Unit::TestCase
@@ -61,4 +63,8 @@ def who; "world"; end
61 63
     assert_body "WLang Layout!\nHello World"
62 64
   end
63 65
 
64  
-end
  66
+end
  67
+
  68
+rescue LoadError
  69
+  warn "#{$!.to_s}: skipping wlang tests"
  70
+end

0 notes on commit 31155b5

Please sign in to comment.
Something went wrong with that request. Please try again.