Skip to content

Commit

Permalink
[enhance] add 'rubinius?()' helper into 'testutil.rb'
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatch committed Mar 19, 2011
1 parent 433e34c commit 4cf9717
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testutil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4cf9717

Please sign in to comment.