From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/builder/files: builder-3.0.0+ruby-1.9.2.patch |
Date: | Wed, 02 Feb 2011 13:28:51 |
Message-Id: | 20110202132842.C816B20057@flycatcher.gentoo.org |
1 | flameeyes 11/02/02 13:28:42 |
2 | |
3 | Added: builder-3.0.0+ruby-1.9.2.patch |
4 | Log: |
5 | Add patch to fix tests with Ruby 1.9.2 and add ruby19 compatibility. |
6 | |
7 | (Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-ruby/builder/files/builder-3.0.0+ruby-1.9.2.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/builder/files/builder-3.0.0+ruby-1.9.2.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/builder/files/builder-3.0.0+ruby-1.9.2.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: builder-3.0.0+ruby-1.9.2.patch |
16 | =================================================================== |
17 | From 770b5acf1736297669d000d1f673ba287ef1d95e Mon Sep 17 00:00:00 2001 |
18 | From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@×××××.com> |
19 | Date: Wed, 2 Feb 2011 14:20:00 +0100 |
20 | Subject: [PATCH] Skip blankslate tests even when using minitest. |
21 | |
22 | At least with Ruby 1.9.2's minitest, simply defining the suite method is |
23 | not going to be enough to skip over these tests; instead use the skip |
24 | method if it's available. |
25 | --- |
26 | test/test_blankslate.rb | 4 ++++ |
27 | 1 files changed, 4 insertions(+), 0 deletions(-) |
28 | |
29 | diff --git a/test/test_blankslate.rb b/test/test_blankslate.rb |
30 | index a46eeb6..222b9bc 100644 |
31 | --- a/test/test_blankslate.rb |
32 | +++ b/test/test_blankslate.rb |
33 | @@ -89,6 +89,10 @@ class TestBlankSlate < Test::Unit::TestCase |
34 | end |
35 | |
36 | def setup |
37 | + if Object::const_defined?(:BasicObject) and respond_to?(:skip) |
38 | + skip "BlankSlate is not used in this environment" |
39 | + end |
40 | + |
41 | @bs = BlankSlate.new |
42 | end |
43 | |
44 | -- |
45 | 1.7.4 |