summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakoto kuwata <kwa@kuwata-lab.com>2011-03-20 00:42:13 +0900
committermakoto kuwata <kwa@kuwata-lab.com>2011-03-20 00:47:50 +0900
commit4cf9717d04049c388610fd79552ae2e378fe487c (patch)
tree8cab8db1ae6505bee1bba0b629805475bc7219f6
parent433e34c7f2c07aae003661c2e2182b68f03cbb67 (diff)
downloaderubis-4cf9717d04049c388610fd79552ae2e378fe487c.tar.gz
[enhance] add 'rubinius?()' helper into 'testutil.rb'
-rw-r--r--test/testutil.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testutil.rb b/test/testutil.rb
index 6f3df9c..e5293a5 100644
--- a/test/testutil.rb
+++ b/test/testutil.rb
@@ -17,6 +17,10 @@ def ruby19? # :nodoc:
RUBY_VERSION =~ /\A1.9/
end
+def rubinius? # :nodoc:
+ defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx"
+end
+
class Test::Unit::TestCase