diff options
author | 2011-02-02 13:28:42 +0000 | |
---|---|---|
committer | 2011-02-02 13:28:42 +0000 | |
commit | d6561388a72bd2e8481a4746461274b0e3a78e89 (patch) | |
tree | 61f0884c2d1a337f0f5a2c7dff748b5035835372 /dev-ruby/builder/files | |
parent | mask ayatana use flag globally (diff) | |
download | historical-d6561388a72bd2e8481a4746461274b0e3a78e89.tar.gz historical-d6561388a72bd2e8481a4746461274b0e3a78e89.tar.bz2 historical-d6561388a72bd2e8481a4746461274b0e3a78e89.zip |
Add patch to fix tests with Ruby 1.9.2 and add ruby19 compatibility.
Package-Manager: portage-2.2.0_alpha19/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/builder/files')
-rw-r--r-- | dev-ruby/builder/files/builder-3.0.0+ruby-1.9.2.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-ruby/builder/files/builder-3.0.0+ruby-1.9.2.patch b/dev-ruby/builder/files/builder-3.0.0+ruby-1.9.2.patch new file mode 100644 index 000000000000..5d627d75f436 --- /dev/null +++ b/dev-ruby/builder/files/builder-3.0.0+ruby-1.9.2.patch @@ -0,0 +1,30 @@ +From 770b5acf1736297669d000d1f673ba287ef1d95e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@gmail.com> +Date: Wed, 2 Feb 2011 14:20:00 +0100 +Subject: [PATCH] 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. +--- + test/test_blankslate.rb | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +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 + +-- +1.7.4 + |