Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+ Added maglev? guard

[git-p4: depot-paths = "//src/minitest/dev/": change = 8128]
  • Loading branch information...
commit d674a90e5f8a08e43b72a3d531773ee7892687cf 1 parent 48e2726
@zenspider zenspider authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/minitest/unit.rb
View
9 lib/minitest/unit.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.