blob: 5d627d75f4368537333f1d8cb7802090f5a4aca5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|