diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 18:58:07 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:43:55 +0200 |
commit | 948a863bd8ba237b71f647a4815eedb0befd9ab6 (patch) | |
tree | 0a9ab5787ef4791cb16523f48f773eed0ba7879b /spec/quality_spec.rb | |
parent | a4beba4cbfc837f7b3b5fb35b95d0521255e8584 (diff) | |
download | bundler-948a863bd8ba237b71f647a4815eedb0befd9ab6.tar.gz |
Extract yet another helper method
Diffstat (limited to 'spec/quality_spec.rb')
-rw-r--r-- | spec/quality_spec.rb | 10 |
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 |