summaryrefslogtreecommitdiff
path: root/spec/quality_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-15 18:58:07 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-16 08:43:55 +0200
commit948a863bd8ba237b71f647a4815eedb0befd9ab6 (patch)
tree0a9ab5787ef4791cb16523f48f773eed0ba7879b /spec/quality_spec.rb
parenta4beba4cbfc837f7b3b5fb35b95d0521255e8584 (diff)
downloadbundler-948a863bd8ba237b71f647a4815eedb0befd9ab6.tar.gz
Extract yet another helper method
Diffstat (limited to 'spec/quality_spec.rb')
-rw-r--r--spec/quality_spec.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb
index 5f00d4b6a0..40c0b0366e 100644
--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -225,16 +225,8 @@ RSpec.describe "The library itself" do
end
it "can still be built" do
- with_root_gemspec do |gemspec|
- Dir.chdir(root) { gem_command! :build, gemspec }
- end
-
- bundler_path = root.join("bundler-#{Bundler::VERSION}.gem")
-
- begin
+ with_built_bundler do |_gem_path|
expect(err).to be_empty, "bundler should build as a gem without warnings, but\n#{err}"
- ensure
- bundler_path.rmtree
end
end