summaryrefslogtreecommitdiff
path: root/test/rubygems/helper.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-04-28 17:48:04 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-04-28 19:08:49 +0900
commitd77b88c681878b9d9c39d2d186e020186971beb5 (patch)
tree048e444cf99bc9be37fadf536582c920b2c05f56 /test/rubygems/helper.rb
parent1056489ea3e1c3f201936666b2725bfc142bb0f2 (diff)
Move testing_ruby_repo into test helper
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5669
Diffstat (limited to 'test/rubygems/helper.rb')
-rw-r--r--test/rubygems/helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index 6b57ff066e..4460df8319 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -1188,6 +1188,14 @@ Also, a list:
end
##
+ # Is this test being run on a ruby/ruby repository?
+ #
+
+ def testing_ruby_repo?
+ !ENV["GEM_COMMAND"].nil?
+ end
+
+ ##
# Returns the make command for the current platform. For versions of Ruby
# built on MS Windows with VC++ or Borland it will return 'nmake'. On all
# other platforms, including Cygwin, it will return 'make'.