diff options
Diffstat (limited to 'spec/quality_spec.rb')
-rw-r--r-- | spec/quality_spec.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb index 40e1a113f0..5f00d4b6a0 100644 --- a/spec/quality_spec.rb +++ b/spec/quality_spec.rb @@ -225,13 +225,7 @@ RSpec.describe "The library itself" do end it "can still be built" do - if ruby_core? - spec = Gem::Specification.load(gemspec.to_s) - spec.bindir = "libexec" - File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby } - Dir.chdir(root) { gem_command! :build, root.join("bundler.gemspec") } - FileUtils.rm(root.join("bundler.gemspec")) - else + with_root_gemspec do |gemspec| Dir.chdir(root) { gem_command! :build, gemspec } end |