[DRE-commits] [SCM] ruby-builder.git branch, master, updated. upstream/3.0.0-10-gc8374a2

Antonio Terceiro terceiro at softwarelivre.org
Fri Aug 12 07:50:02 UTC 2011


The following commit has been merged in the master branch:
commit c6ab2a7c8e0cfb64c14c227c15d926949743daf2
Author: Diego Elio Pettenò <flameeyes at gmail.com>
Date:   Wed Feb 2 14:20:00 2011 +0100

    Skip blankslate tests even when using minitest.
    
    At least with Ruby 1.9.2's minitest, simply defining the suite method is
    not going to be enough to skip over these tests; instead use the skip
    method if it's available.

diff --git a/test/test_blankslate.rb b/test/test_blankslate.rb
index a46eeb6..222b9bc 100644
--- a/test/test_blankslate.rb
+++ b/test/test_blankslate.rb
@@ -89,6 +89,10 @@ class TestBlankSlate < Test::Unit::TestCase
   end
 
   def setup
+    if Object::const_defined?(:BasicObject) and respond_to?(:skip)
+      skip "BlankSlate is not used in this environment" 
+    end
+
     @bs = BlankSlate.new
   end
 

-- 
ruby-builder.git



More information about the Pkg-ruby-extras-commits mailing list