diff options
author | makoto kuwata <kwa@kuwata-lab.com> | 2011-03-20 00:42:13 +0900 |
---|---|---|
committer | makoto kuwata <kwa@kuwata-lab.com> | 2011-03-20 00:47:50 +0900 |
commit | 4cf9717d04049c388610fd79552ae2e378fe487c (patch) | |
tree | 8cab8db1ae6505bee1bba0b629805475bc7219f6 | |
parent | 433e34c7f2c07aae003661c2e2182b68f03cbb67 (diff) | |
download | erubis-4cf9717d04049c388610fd79552ae2e378fe487c.tar.gz |
[enhance] add 'rubinius?()' helper into 'testutil.rb'
-rw-r--r-- | test/testutil.rb | 4 |
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 |