Permalink
Browse files

+ Added maglev? guard

[git-p4: depot-paths = "//src/minitest/dev/": change = 8128]
  • Loading branch information...
1 parent 48e2726 commit d674a90e5f8a08e43b72a3d531773ee7892687cf @zenspider zenspider committed Jan 18, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/minitest/unit.rb
View
@@ -1096,6 +1096,15 @@ def jruby? platform = RUBY_PLATFORM
##
# Is this running on mri?
+ def maglev? platform = defined?(RUBY_ENGINE) && RUBY_ENGINE
+ "maglev" == platform
+ end
+
+ module_function :maglev?
+
+ ##
+ # Is this running on mri?
+
def mri? platform = RUBY_DESCRIPTION
/^ruby/ =~ platform
end

0 comments on commit d674a90

Please sign in to comment.