summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/check_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2025-03-07 21:35:58 +0100
committerHiroshi SHIBATA <[email protected]>2025-03-12 18:02:09 +0900
commit51958bae66df026823fff159dd7513daf74f5727 ()
treeed64dd39d43296210bdf3adf7cffcc718382c176 /spec/bundler/commands/check_spec.rb
parentf656d34f103d9cc53259239d164ffa86d4117f9c (diff)
[rubygems/rubygems] Prefer `FileUtils.rm_r` to `FileUtils.rm_rf` for specs
Because it does not swallow errors if it fails to remove the given folders, making issues easier to debug. https://.com/rubygems/rubygems/commit/0db12d7afc
-rw-r--r--spec/bundler/commands/check_spec.rb6
1 files changed, 3 insertions, 3 deletions
@@ -95,7 +95,7 @@ RSpec.describe "bundle check" do
gem "foo", git: "#{lib_path("foo")}"
G
- FileUtils.rm_rf bundled_app("vendor/bundle")
bundle :check, raise_on_error: false
expect(exitstatus).to eq 1
expect(err).to include("Bundler can't satisfy your Gemfile's dependencies.")
@@ -281,7 +281,7 @@ RSpec.describe "bundle check" do
G
bundle "install --path vendor/bundle"
- FileUtils.rm_rf(bundled_app(".bundle"))
end
it "returns success" do
@@ -328,7 +328,7 @@ RSpec.describe "bundle check" do
end
it "shows what is missing with the current Gemfile if it is not satisfied" do
- FileUtils.rm_rf default_bundle_path
system_gems :bundler
bundle :check, raise_on_error: false
expect(err).to match(/The following gems are missing/)