Skip to content

Commit

Permalink
[rubygems/rubygems] Privatize some test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and matzbot committed Jan 14, 2022
1 parent 810516c commit 3006451
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/rubygems/test_gem.rb
Expand Up @@ -2022,6 +2022,8 @@ def test_default_source_date_epoch_doesnt_change
ENV['SOURCE_DATE_EPOCH'] = old_epoch
end

private

def ruby_install_name(name)
with_clean_path_to_ruby do
orig_RUBY_INSTALL_NAME = RbConfig::CONFIG['ruby_install_name']
Expand Down
2 changes: 2 additions & 0 deletions test/rubygems/test_gem_installer.rb
Expand Up @@ -2259,6 +2259,8 @@ def test_gem_attribute
assert_kind_of(String, installer.gem)
end

private

def util_execless
@spec = util_spec 'z'
util_build_gem @spec
Expand Down

0 comments on commit 3006451

Please sign in to comment.