Browse files

rubinius returns "rbx" for RUBY_ENGINE, not "rubinius"

  • Loading branch information...
1 parent 995d543 commit b0beba2621a98af3bc00a8f932c330b82b676af2 @goncalossilva goncalossilva committed Mar 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/testing/performance.rb
View
4 activesupport/lib/active_support/testing/performance.rb
@@ -273,8 +273,8 @@ def measure; end
RUBY_ENGINE = 'ruby' unless defined?(RUBY_ENGINE) # mri 1.8
case RUBY_ENGINE
- when 'ruby' then require 'active_support/testing/performance/ruby'
- when 'rubinius' then require 'active_support/testing/performance/rubinius'
+ when 'ruby' then require 'active_support/testing/performance/ruby'
+ when 'rbx' then require 'active_support/testing/performance/rubinius'
else
$stderr.puts 'Your ruby interpreter is not supported for benchmarking.'
exit

0 comments on commit b0beba2

Please sign in to comment.