diff --git a/test/rubygems/test_gem_config_file.rb b/test/rubygems/test_gem_config_file.rb index 128b0ec841..e8c76ab49b 100644 --- a/test/rubygems/test_gem_config_file.rb +++ b/test/rubygems/test_gem_config_file.rb @@ -519,10 +519,6 @@ if you believe they were disclosed to a third party. assert_equal(false, @cfg.install_extension_in_lib) end - def util_config_file(args = @cfg_args) - @cfg = Gem::ConfigFile.new args - end - def test_disable_default_gem_server File.open @temp_conf, "w" do |fp| fp.puts ":disable_default_gem_server: true" @@ -568,4 +564,8 @@ if you believe they were disclosed to a third party. actual = Gem::ConfigFile.load_with_rubygems_config_hash(yaml) assert_equal("bar", actual[:foo]) end + + def util_config_file(args = @cfg_args) + @cfg = Gem::ConfigFile.new args + end end