diff options
author | Vít Ondruch <vondruch@redhat.com> | 2019-09-11 15:39:55 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-06 13:07:16 +0900 |
commit | b5f243291742886a1280277c2ff954177b4f50a7 (patch) | |
tree | 0eed0e53003dc5080c271b68c6e1994dfbd6b3b0 /test | |
parent | 5d718f109d516971848438fc99f56418a0811c5d (diff) | |
download | ruby-b5f243291742886a1280277c2ff954177b4f50a7.tar.gz |
[rubygems/rubygems] Use TestCase#util_spec instead of custom code.
https://github.com/rubygems/rubygems/commit/74d485ff1e
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_commands_setup_command.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index 6a00a63f65..a0e4a3803a 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -36,12 +36,10 @@ class TestGemCommandsSetupCommand < Gem::TestCase create_dummy_files(filelist) - gemspec = Gem::Specification.new - gemspec.author = "Us" - gemspec.name = "bundler" - gemspec.version = BUNDLER_VERS - gemspec.bindir = "exe" - gemspec.executables = ["bundle", "bundler"] + gemspec = util_spec "bundler", BUNDLER_VERS do |s| + s.bindir = "exe" + s.executables = ["bundle", "bundler"] + end File.open "bundler/bundler.gemspec", "w" do |io| io.puts gemspec.to_ruby |