mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove useless gem setup
https://github.com/rubygems/rubygems/commit/c8913e37a7
This commit is contained in:
parent
6cacbf542c
commit
400d693863
1 changed files with 1 additions and 10 deletions
|
@ -243,21 +243,12 @@ class TestGemCommandsBuildCommand < Gem::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_execute_without_gem_name
|
def test_execute_without_gem_name
|
||||||
some_gem = util_spec "some_gem" do |s|
|
some_gem = util_spec "some_gem"
|
||||||
s.license = "AGPL-3.0"
|
|
||||||
s.files = ["README.md"]
|
|
||||||
end
|
|
||||||
|
|
||||||
gemspec_dir = File.join(@tempdir, "build_command_gem")
|
gemspec_dir = File.join(@tempdir, "build_command_gem")
|
||||||
gemspec_file = File.join(gemspec_dir, some_gem.spec_name)
|
gemspec_file = File.join(gemspec_dir, some_gem.spec_name)
|
||||||
readme_file = File.join(gemspec_dir, 'README.md')
|
|
||||||
|
|
||||||
FileUtils.mkdir_p(gemspec_dir)
|
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|
|
File.open(gemspec_file, "w") do |gs|
|
||||||
gs.write(some_gem.to_ruby)
|
gs.write(some_gem.to_ruby)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue