diff options
author | Akira Matsuda <ronnie@dio.jp> | 2023-02-04 15:22:13 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-02-06 16:19:46 +0000 |
commit | 77bec15c937a98d4d863c4a857d5619b41e529f1 (patch) | |
tree | 8ab58bac1a1b1dbeca1814fdf9b684dc8a01a85a /spec/bundler | |
parent | 21dcf5d766befb46c5acffd174f507836e93504c (diff) | |
download | ruby-77bec15c937a98d4d863c4a857d5619b41e529f1.tar.gz |
[rubygems/rubygems] Properly load the generated gemspec
The previous code loads bundler's gemspec which does not include the generated
gemspec file, and thus the test was passing where it should indeed fail.
With this change, the test properly fails now.
https://github.com/rubygems/rubygems/commit/2098ea0d75
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index 5827f7380c..081e16944f 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -633,7 +633,7 @@ RSpec.describe "bundle gem" do it "does not include the gemspec file in files" do bundle "gem #{gem_name}" - bundler_gemspec = Bundler::GemHelper.new(gemspec_dir).gemspec + bundler_gemspec = Bundler::GemHelper.new(bundled_app(gem_name), gem_name).gemspec expect(bundler_gemspec.files).not_to include("#{gem_name}.gemspec") end |