summaryrefslogtreecommitdiff
path: root/test/lib/minitest
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/minitest')
-rw-r--r--test/lib/minitest/unit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index e8c22c60b77..81b9d7deae5 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -1171,6 +1171,14 @@ module MiniTest
def windows? platform = RUBY_PLATFORM
/mswin|mingw/ =~ platform
end
+
+ ##
+ # Is this running on mingw?
+
+ def mingw? platform = RUBY_PLATFORM
+ /mingw/ =~ platform
+ end
+
end
##