mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[bundler/bundler] Make sure gem has been built before deleteng it
32520c7020
This commit is contained in:
parent
a56bf5bfde
commit
580e093fdd
1 changed files with 13 additions and 11 deletions
|
@ -226,7 +226,6 @@ RSpec.describe "The library itself" do
|
|||
|
||||
it "can still be built" do
|
||||
Dir.chdir(root) do
|
||||
begin
|
||||
if ruby_core?
|
||||
spec = Gem::Specification.load(gemspec.to_s)
|
||||
spec.bindir = "libexec"
|
||||
|
@ -237,9 +236,12 @@ RSpec.describe "The library itself" do
|
|||
gem_command! :build, gemspec
|
||||
end
|
||||
|
||||
bundler_path = root.join("bundler-#{Bundler::VERSION}.gem")
|
||||
|
||||
begin
|
||||
expect(err).to be_empty, "bundler should build as a gem without warnings, but\n#{err}"
|
||||
ensure
|
||||
root.join("bundler-#{Bundler::VERSION}.gem").rmtree
|
||||
bundler_path.rmtree
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue