From 4cf9717d04049c388610fd79552ae2e378fe487c Mon Sep 17 00:00:00 2001 From: makoto kuwata Date: Sun, 20 Mar 2011 00:42:13 +0900 Subject: [enhance] add 'rubinius?()' helper into 'testutil.rb' --- test/testutil.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.1