diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-04-28 17:48:04 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-04-28 19:08:49 +0900 |
commit | d77b88c681878b9d9c39d2d186e020186971beb5 (patch) | |
tree | 048e444cf99bc9be37fadf536582c920b2c05f56 /test | |
parent | 1056489ea3e1c3f201936666b2725bfc142bb0f2 (diff) |
Move testing_ruby_repo into test helper
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5669
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/helper.rb | 8 | ||||
-rw-r--r-- | test/rubygems/test_require.rb | 4 |
2 files changed, 8 insertions, 4 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'. diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 90b943dff3..8857ceef25 100644 --- a/test/rubygems/test_require.rb +++ b/test/rubygems/test_require.rb @@ -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 |