aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2019-08-18 15:25:29 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-09-05 18:43:12 +0900
commit400d693863cc8b500d9bcaee9529a395f3fe6da7 (patch)
tree3a9122a0cf5b90a78348d28f73f357124341bac8 /test/rubygems
parent6cacbf542caa9954bf760dd10a6ae3c92c9f15e4 (diff)
downloadruby-400d693863cc8b500d9bcaee9529a395f3fe6da7.tar.gz
[rubygems/rubygems] Remove useless gem setup
https://github.com/rubygems/rubygems/commit/c8913e37a7
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_commands_build_command.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/rubygems/test_gem_commands_build_command.rb b/test/rubygems/test_gem_commands_build_command.rb
index 8a160386e2..19575dcd9b 100644
--- a/test/rubygems/test_gem_commands_build_command.rb
+++ b/test/rubygems/test_gem_commands_build_command.rb
@@ -243,21 +243,12 @@ class TestGemCommandsBuildCommand < Gem::TestCase
end
def test_execute_without_gem_name
- some_gem = util_spec "some_gem" do |s|
- s.license = "AGPL-3.0"
- s.files = ["README.md"]
- end
-
+ some_gem = util_spec "some_gem"
gemspec_dir = File.join(@tempdir, "build_command_gem")
gemspec_file = File.join(gemspec_dir, some_gem.spec_name)
- readme_file = File.join(gemspec_dir, 'README.md')
FileUtils.mkdir_p(gemspec_dir)
- File.open(readme_file, "w") do |f|
- f.write("My awesome gem")
- end
-
File.open(gemspec_file, "w") do |gs|
gs.write(some_gem.to_ruby)
end