diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-02-06 16:12:32 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-02-06 08:15:40 +0000 |
| commit | 2d054ef64de31a3306fa9cbaea68cbb5aa0faf21 (patch) | |
| tree | 6a47e12bf539fa20f604e21d3bb68267116adb7c /spec | |
| parent | fa9e63ada9c5e3ede4cf7eca15de5b5967247df7 (diff) | |
[ruby/rubygems] Cleaned up bundler .gem and .gemspec files in ensure block.
https://github.com/ruby/rubygems/commit/dce4ef87bb
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/bundler/commands/clean_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/bundler/commands/clean_spec.rb b/spec/bundler/commands/clean_spec.rb index 793aacf5c2..48a5dba4aa 100644 --- a/spec/bundler/commands/clean_spec.rb +++ b/spec/bundler/commands/clean_spec.rb @@ -934,5 +934,11 @@ RSpec.describe "bundle clean" do bundle :clean should_have_gems "bundler-#{version}" + ensure + ["bundler-#{version}.gem", "bundler-#{version}.gemspec"].each do |filename| + Pathname(vendored_gems(filename)).tap do |path| + FileUtils.rm_rf(path.basename) + end + end end end |
