Move testing_ruby_repo into test helper

This commit is contained in:
Hiroshi SHIBATA 2022-04-28 17:48:04 +09:00
parent 1056489ea3
commit d77b88c681
Notes: git 2022-04-28 19:09:12 +09:00
2 changed files with 8 additions and 4 deletions

View File

@ -1187,6 +1187,14 @@ Also, a list:
RUBY_PLATFORM.match('mswin')
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

View File

@ -671,10 +671,6 @@ class TestGemRequire < Gem::TestCase
private
def testing_ruby_repo?
!ENV["GEM_COMMAND"].nil?
end
def util_install_extension_file(name)
spec = quick_gem name
util_build_gem spec