Move testing_ruby_repo into test helper
This commit is contained in:
parent
1056489ea3
commit
d77b88c681
Notes:
git
2022-04-28 19:09:12 +09:00
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue